Exemple #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);
     }
 }
Exemple #2
0
 public static bool AreHandlersSuspended(this DependencyObject obj)
 {
     return(ExtensionProperties.GetAreHandlersSuspended(obj));
 }