UI Updates With Databinding and INotifyPropertyChanged

added by nebraskadev
7/9/2010 12:54:06 PM

1 Kicks, 53 Views

Today I'm going to show you how easy it is to leverage the power of property binding in Silverlight. I'm going to provide a very simplistic example that, while not very useful in itself, I hope will spark your imagination and show you how easy it is. In my example I'm going to show you how to capture the position of the mouse over a canvas and keep the live updated mouse position in a separate class. In addition, I'll show you how to update your UI directly (moving a box with the mouse and using labels to show the current mouse position) without directly wiring a single event to those controls in your page codebehind!