Пример #1
0
 public static void RemoveHandler_DoActivate(
     this UIElement uiElement,
     DoActivateEventArgs.Handler eventHandler
     )
 {
     if (uiElement != null)
     {
         uiElement.RemoveHandler(TestControl.DoActivateEvent, eventHandler);
     }
 }
Пример #2
0
 public static void AddHandler_DoActivate(
     this UIElement uiElement,
     DoActivateEventArgs.Handler eventHandler,
     bool handledEventsToo = false
     )
 {
     if (uiElement != null)
     {
         uiElement.AddHandler(TestControl.DoActivateEvent, eventHandler, handledEventsToo);
     }
 }