public RaisePropertyChanged ( string propertyName ) : void | ||
propertyName | string | The property name. |
return | void |
public void Bind(INotifyPropertyChanged frame, string frameProperty, string tagProperty, Action validator) { /*bool found = false; * foreach (System.Reflection.PropertyInfo pi in typeof(FrameContainer).GetProperties()) * { * if (pi.Name == tagProperty) * { * found = true; * break; * } * } * if (found == false) * { * }*/ frame.PropertyChanged += delegate { m_FrameContainer.RaisePropertyChanged(tagProperty); validator?.Invoke(); }; }
public void Bind(INotifyPropertyChanged frame, string frameProperty, string tagProperty, Action validator) { /*bool found = false; foreach (System.Reflection.PropertyInfo pi in typeof(FrameContainer).GetProperties()) { if (pi.Name == tagProperty) { found = true; break; } } if (found == false) { }*/ frame.PropertyChanged += delegate { m_FrameContainer.RaisePropertyChanged(tagProperty); if (validator != null) validator(); }; }