Пример #1
0
 protected void RaisePropertyChanged(string propertyName)
 {
     global::System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
     if ((propertyChanged != null))
     {
         propertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(propertyName));
     }
 }
Пример #2
0
 protected void On_PropertyChanged(object sender)
 {
     global::System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged;
     if (handler != null)
     {
         handler(sender, null);
     }
 }
Пример #3
0
 internal static void NotifyCultureChanged()
 {
     global::System.ComponentModel.PropertyChangedEventHandler notify = StaticPropertyChanged;
     if ((notify == null))
     {
         return;
     }
     notify(null, new global::System.ComponentModel.PropertyChangedEventArgs(null));
 }
Пример #4
0
 public static IntPtr FromManaged(global::System.ComponentModel.PropertyChangedEventHandler managedDelegate) =>
 managedDelegate is null ? IntPtr.Zero : CreateMarshaler(managedDelegate).GetRef();
Пример #5
0
 public static unsafe IObjectReference CreateMarshaler(global::System.ComponentModel.PropertyChangedEventHandler managedDelegate) =>
 managedDelegate is null ? null : ComWrappersSupport.CreateCCWForObject(managedDelegate).As <global::WinRT.Interop.IDelegateVftbl>(GuidGenerator.GetIID(typeof(PropertyChangedEventHandler)));