protected RaisePropertyChanged ( string propertyName, bool runOnDispatcher = true ) : void | ||
propertyName | string | |
runOnDispatcher | bool | |
Результат | void |
protected void RaisePropertyChanged(string propertyName, bool runOnDispatcher = true)
{
#if SILVERLIGHT
if (!runOnDispatcher || System.Windows.Deployment.Current.Dispatcher.CheckAccess())
#endif
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
#if SILVERLIGHT
else
System.Windows.Deployment.Current.Dispatcher.BeginInvoke(() => PropertyChanged(this, new PropertyChangedEventArgs(propertyName)));
#endif
}