Ejemplo n.º 1
0
 /// <summary>
 ///     Adds a handler for the PreviewKeyboardInputProviderAcquireFocus attached event
 /// </summary>
 /// <param name="element">UIElement or ContentElement that listens to this event</param>
 /// <param name="handler">Event Handler to be added</param>
 public static void AddPreviewKeyboardInputProviderAcquireFocusHandler(DependencyObject element, KeyboardInputProviderAcquireFocusEventHandler handler)
 {
     UIElement.AddHandler(element, PreviewKeyboardInputProviderAcquireFocusEvent, handler);
 }
Ejemplo n.º 2
0
 /// <summary>
 ///     Removes a handler for the KeyboardInputProviderAcquireFocus attached event
 /// </summary>
 /// <param name="element">UIElement or ContentElement that listens to this event</param>
 /// <param name="handler">Event Handler to be removed</param>
 public static void RemoveKeyboardInputProviderAcquireFocusHandler(DependencyObject element, KeyboardInputProviderAcquireFocusEventHandler handler)
 {
     UIElement.RemoveHandler(element, KeyboardInputProviderAcquireFocusEvent, handler);
 }
Ejemplo n.º 3
0
        /// <summary>
        ///     The mechanism used to call the type-specific handler on the
        ///     target.
        /// </summary>
        /// <param name="genericHandler">
        ///     The generic handler to call in a type-specific way.
        /// </param>
        /// <param name="genericTarget">
        ///     The target to call the handler on.
        /// </param>
        protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
        {
            KeyboardInputProviderAcquireFocusEventHandler handler = (KeyboardInputProviderAcquireFocusEventHandler)genericHandler;

            handler(genericTarget, this);
        }
 public static void AddPreviewKeyboardInputProviderAcquireFocusHandler(System.Windows.DependencyObject element, KeyboardInputProviderAcquireFocusEventHandler handler)
 {
 }
Ejemplo n.º 5
0
 /// <summary>
 ///     Removes a handler for the KeyboardInputProviderAcquireFocus attached event
 /// </summary>
 /// <param name="element">UIElement or ContentElement that listens to this event</param>
 /// <param name="handler">Event Handler to be removed</param>
 public static void RemoveKeyboardInputProviderAcquireFocusHandler(DependencyObject element, KeyboardInputProviderAcquireFocusEventHandler handler)
 {
     UIElement.RemoveHandler(element, KeyboardInputProviderAcquireFocusEvent, handler);
 }
Ejemplo n.º 6
0
 /// <summary>
 ///     Adds a handler for the PreviewKeyboardInputProviderAcquireFocus attached event
 /// </summary>
 /// <param name="element">UIElement or ContentElement that listens to this event</param>
 /// <param name="handler">Event Handler to be added</param>
 public static void AddPreviewKeyboardInputProviderAcquireFocusHandler(DependencyObject element, KeyboardInputProviderAcquireFocusEventHandler handler)
 {
     UIElement.AddHandler(element, PreviewKeyboardInputProviderAcquireFocusEvent, handler);
 }
 public static void AddPreviewKeyboardInputProviderAcquireFocusHandler(System.Windows.DependencyObject element, KeyboardInputProviderAcquireFocusEventHandler handler)
 {
 }