CHAOS.Portal.Client.Standard.Managers.AViewModel.RaisePropertyChanged C# (CSharp) Method

RaisePropertyChanged() protected method

protected RaisePropertyChanged ( string propertyName, bool runOnDispatcher = true ) : void
propertyName string
runOnDispatcher bool
return 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
		}