Beispiel #1
0
 /// <summary>
 /// Hendler <see cref="VerifyPropertyChange"/>
 /// </summary>
 /// <param name="propertyName">property name</param>
 public virtual bool OnVerifyPropertyChange([CallerMemberName] string propertyName = "")
 => MvvmElementHelper.OnVerifyPropertyChange(this, (args) => VerifyPropertyChange?.Invoke(this, args), propertyName);
Beispiel #2
0
 /// <summary>
 /// Set property value
 /// </summary>
 /// <typeparam name="TProperty">type property</typeparam>
 /// <param name="property">property</param>
 /// <param name="value">new value</param>
 /// <param name="propertyName">property name</param>
 /// <returns></returns>
 protected virtual bool SetPropertyValue <TProperty>(ref TProperty property, TProperty value, [CallerMemberName] string propertyName = "")
 {
     return(MvvmElementHelper.SetPropertyValue(this, ref property, value, propertyName));
 }
Beispiel #3
0
 /// <summary>
 /// Hendler <see cref="INotifyPropertyChanged.PropertyChanged"/>
 /// </summary>
 /// <param name="propertyName">property name</param>
 public virtual void OnPropertyChanged([CallerMemberName] string propertyName = "")
 => MvvmElementHelper.OnPropertyChanged(this, (args) => PropertyChanged?.Invoke(this, args), propertyName);