예제 #1
0
 public static void SetValueNoCallback(this DependencyObject obj, DependencyProperty property, object value)
 {
     ExtensionProperties.SetAreHandlersSuspended(obj, true);
     try
     {
         obj.SetValue(property, value);
     }
     finally
     {
         ExtensionProperties.SetAreHandlersSuspended(obj, false);
     }
 }
예제 #2
0
 public static bool AreHandlersSuspended(this DependencyObject obj) =>
 ExtensionProperties.GetAreHandlersSuspended(obj);