Пример #1
0
 private static void VerifyVisualTreeChangeCore(DependencyObject d)
 {
     if (s_IsVisualTreeChangedInProgress)
     {
         if (!EnableHelper.AllowChangesDuringVisualTreeChanged(d))
         {
             throw new InvalidOperationException(SR.Get(SRID.ReentrantVisualTreeChangeError, nameof(VisualTreeChanged)));
         }
     }
 }
Пример #2
0
 /// <summary>
 /// Disable the VisualTreeChanged event.
 /// </summary>
 public static void DisableVisualTreeChanged()
 {
     EnableHelper.DisableVisualTreeChanged();
 }