Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When does the bound data get updated?
Message
De
19/02/2013 12:14:52
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
19/02/2013 11:40:00
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Divers
Thread ID:
01566380
Message ID:
01566385
Vues:
48
>I have a textbox which is bound to a field on an entity. I need to run some code whenever the entity's field changes. I've tried calling my code in the textbox's Text_Changed event, but referring to the entity's field at this point in time does not reflect the value entered in the textbox.
>
>At what point in time would the entity's field get updated with the value entered in the textbox?
>
>Or is there another way to trap/raise an event when the entity's filed changes?

Usually, the UI field is bound to a property that implements INotifyPropertyChanged. You can process your code changes there when the properties value changes. Or trap the PropertyChanged event in the UI and fire off your code there..
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform