We are going to create a data object that we will bind to our input form to provide validation. Silverlight can bind to any properties of an object, but for validation we need to do two way binding, for which we need both a get and a set accessor for each of our properties. In order to use two way binding, we will need to implement the
INotifyPropertyChanged interface that defines a
PropertyChanged event that Silverlight will use to update the binding when a property changes.
CustomerInfoto the Silverlight project: