コード例 #1
0
 public void OnPropertyChanged(object oldValue, object newValue, [CallerMemberName] string property = null)
 {
     PropertyChanged.Invoke(this, new PropertyChangedEventArgs(property));
     if (!NoInvoke)
     {
         PropertyChangedValue?.Invoke(oldValue, newValue, property);
     }
 }
        public void NotifyPropertyChanged(string Text)
        {
            switch (Text)
            {
            case "Text":
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(Text));
                break;

            case "Value":
                PropertyChangedValue?.Invoke(this, new PropertyChangedEventArgs(Text));
                break;

            default:
                break;
            }
        }