public static void RemoveQueryAutomationIdForDetailHandler( DependencyObject d, QueryAutomationIdRoutedEventHandler handler ) { UIElement element = d as UIElement; if( element != null ) element.RemoveHandler( AutomationQueryEvents.QueryAutomationIdForDetailEvent, handler ); }
public static void AddQueryAutomationIdForDetailHandler(DependencyObject d, QueryAutomationIdRoutedEventHandler handler) { UIElement element = d as UIElement; if (element != null) { element.AddHandler(AutomationQueryEvents.QueryAutomationIdForDetailEvent, handler); } }
public static void RemoveQueryAutomationIdForGroupHandler(DependencyObject d, QueryAutomationIdRoutedEventHandler handler) { UIElement element = d as UIElement; if (element != null) { element.RemoveHandler(AutomationQueryEvents.QueryAutomationIdForGroupEvent, handler); } }
public static void AddQueryAutomationIdForGroupHandler( DependencyObject d, QueryAutomationIdRoutedEventHandler handler ) { UIElement element = d as UIElement; if( element != null ) element.AddHandler( AutomationQueryEvents.QueryAutomationIdForGroupEvent, handler ); }