Updatesourcetrigger property in SilverLight?

I believe that most people will encounter this situation when you enter a text box you like, and filter the ViewCollection based on the entered content.

< p>It is very straightforward in WPF, just change UpdateSourceTrigger to Text binding to PropertyChanged.

As you might expect, Silverlight does not have it. Only default and explicit.

< p>I have an idea to bind the interactive behavior to the TextChanged event of the text box. Would you recommend this method or is there a better method?

behavior is the way my team solves it, I think this is a generally accepted method. I also see I have used additional attributes to solve it (probably clearer XAML syntax, but I have never tried it). These are the first links that appear, completely untested by me (it should be easy to find other links):

Behavior

Attached Property

I believe that when you enter a text box you like, most people will In this case, filter the ViewCollection according to the entered content.

It is very straightforward in WPF, just change UpdateSourceTrigger to Text and bind to PropertyChanged.

< p>As you might expect, Silverlight does not have it. Only default and explicit.

I have an idea to bind the interactive behavior to the TextChanged event of the text box. Would you recommend this method or there is a better method?

The behavior is the way my team solves it. I think this is a generally accepted method. I have also read articles about using additional attributes to solve it (maybe more Clear XAML syntax, but I have never tried it). These are the first links that appear and have not been tested by me (it should be easy to find other links):

Behavior

Attached Property

Leave a Comment

Your email address will not be published.