I know one way ... DispatcherTimer
Wow, avoid this: INotifyPropertyChange interface is your friend. See msdn for samples.
Basically, you onPropertyChanged event (usually called onPropertyChanged ) on the Setter your properties, and subscribers process it.
An example implementation from msdn goes:
// This is a simple customer class that // implements the IPropertyChange interface. public class DemoCustomer : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; private void NotifyPropertyChanged(String info) { if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs(info)); } public string CustomerName { //getter set { if (value != this.customerNameValue) { this.customerNameValue = value; NotifyPropertyChanged("CustomerName"); } } } }
Orkun osen
source share