コード例 #1
0
    public static void RemoveQueryAutomationIdForDetailHandler( DependencyObject d, QueryAutomationIdRoutedEventHandler handler )
    {
      UIElement element = d as UIElement;

      if( element != null )
        element.RemoveHandler( AutomationQueryEvents.QueryAutomationIdForDetailEvent, handler );
    }
コード例 #2
0
        public static void AddQueryAutomationIdForDetailHandler(DependencyObject d, QueryAutomationIdRoutedEventHandler handler)
        {
            UIElement element = d as UIElement;

            if (element != null)
            {
                element.AddHandler(AutomationQueryEvents.QueryAutomationIdForDetailEvent, handler);
            }
        }
コード例 #3
0
        public static void RemoveQueryAutomationIdForGroupHandler(DependencyObject d, QueryAutomationIdRoutedEventHandler handler)
        {
            UIElement element = d as UIElement;

            if (element != null)
            {
                element.RemoveHandler(AutomationQueryEvents.QueryAutomationIdForGroupEvent, handler);
            }
        }
コード例 #4
0
    public static void AddQueryAutomationIdForGroupHandler( DependencyObject d, QueryAutomationIdRoutedEventHandler handler )
    {
      UIElement element = d as UIElement;

      if( element != null )
        element.AddHandler( AutomationQueryEvents.QueryAutomationIdForGroupEvent, handler );
    }