This is simply a PSA as I spent 10 minutes today scratching my head why my Property Change notification was not being fired when I edited some text boxes in a WP7 application.
I knew my binding was setup because the values in my ViewModel we showing up in my View, but when I would make a change to the text box the value was NOT being pushed back into my ViewModel.
Once I determined that my binding was setup correctly (ok, kinda correctly) I bounced over to my XAML and realized I forgot to set the mode in my binding. Make sure your binding looks like below if you want your changes to be pushed into your ViewModel.
{Binding State, Mode=TwoWay}
If you forget to put the Mode=TwoWay you will NOT get updates
Till next time,
Posted
06-06-2010 10:28 AM
by
Derik Whittaker