Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7017293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:53:44+00:00 2026-05-27T22:53:44+00:00

Consider the following ViewModel property: private string _slowProperty; public string SlowProperty { get {

  • 0

Consider the following ViewModel property:

private string _slowProperty;
public string SlowProperty
{
    get { return _slowProperty; }
    set
    {
        _slowProperty = value;
        RaisePropertyChanged("SlowProperty");
    }
}

Which is bound to a textbox, like so:

<TextBox Text="{Binding SlowProperty}" />

Now, the problem here is that every time the value of SlowProperty changes, and it does so quite often, the textbox would go and try to get its value, which is, quite slow. I could alleviate the situation using async binding, however, that would still be wasting CPU cycles.

Instead, what I’d like to have is something like:

<TextBlock Text="{z:DelayedSourceBinding SlowProperty}" />

Which would try to get the binding after a certain delay. So for example if the SlowPropertychanged 5 times in a row, within a short while, then only the last text would be visible in the textbox.

I’ve found the following project that performs something like that, so it my example I could use it like so:

<TextBox Text="{z:DelayBinding Path=SearchText}" />

The problem with it, is that it only updates the binding target after a delay. The source path, however, is evaluated and its getter is executed upon every change of the source. Which, in the case of SlowProperty would still waste CPU cycles.

I’ve tried to make my own delayed binding class, but got stuck. Is there any other binder that can do anything like that?

For completeness sake, here are 2 other projects that perform similar tasks, yet, none address the problem I am experiencing:

DeferredBinding – A similar solution to DelayBinding. However, it is a bit more complex to use.

DelayedBindingTextBox – Implements delayed binding using a custom textbox control.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:53:44+00:00Added an answer on May 27, 2026 at 10:53 pm

    Why not solve this problem in the view model? If your property changes rapidly, but is slow to get, you could have a second ‘delayed’ property exposed by your view model. You could use a timer to update this ‘delayed’ property periodically.

    Or, a cleaner implementation could use the Throttle function provided by the reactive extensions framework.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider following example : public class SomeBusinessLayerService : DataService<MyEntityContainer> { [WebInvoke] void DoSomething(string someParam)
Please consider following sample @Entity public class Abc { @Id private Long id; @Unindexed
Consider following code for an android app; private String GetDistance(String src, String dest) {
Consider following class class test { public: test(int x){ cout<< test \n; } };
Consider following program: static void Main (string[] args) { int i; uint ui; i
Consider the following code: [Authenticate(Order = 1)] public ActionResult SomeActionThatRequiresAuthentication() { var model =
How to get the underlying type of an Observable collection using reflection? Consider following
Please consider the following code (also in this fiddle ): var viewModel = {
Consider following simple DAO example: public abstract class DAOFactory { public abstract AccountDAO getAccountDAO();
Consider following MySQL table: CREATE TABLE `log` ( `what` enum('add', 'edit', 'remove') CHARACTER SET

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.