/// <summary> /// Removes a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.Keyboard.TextEditing"/> /// attached event from the specified element. /// </summary> /// <param name="element">The element from which to remove the handler.</param> /// <param name="handler">The handler to remove from the specified element.</param> public static void RemoveTextEditingHandler(DependencyObject element, UpfKeyboardEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.RemoveHandler(element, TextEditingEvent, handler); }
/// <summary> /// Removes a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.Keyboard.KeyUp"/> /// attached event from the specified element. /// </summary> /// <param name="element">The element from which to remove the handler.</param> /// <param name="handler">The handler to remove from the specified element.</param> public static void RemoveKeyUpHandler(DependencyObject element, UpfKeyEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.RemoveHandler(element, KeyUpEvent, handler); }
/// <summary> /// Adds a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.Keyboard.KeyDown"/> /// attached event to the specified element. /// </summary> /// <param name="element">The element to which to add the handler.</param> /// <param name="handler">The handler to add to the specified element.</param> public static void AddKeyDownHandler(DependencyObject element, UpfKeyDownEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.AddHandler(element, KeyDownEvent, handler); }
/// <summary> /// Removes a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.Keyboard.LostKeyboardFocus"/> /// attached event from the specified element. /// </summary> /// <param name="element">The element from which to remove the handler.</param> /// <param name="handler">The handler to remove from the specified element.</param> public static void RemoveLostKeyboardFocusHandler(DependencyObject element, UpfRoutedEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.RemoveHandler(element, LostKeyboardFocusEvent, handler); }
/// <summary> /// Removes a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.Generic.GenericInteraction"/> /// attached event to the specified element. /// </summary> /// <param name="element">The element from which to remove the handler.</param> /// <param name="handler">The handler to remove from the specified element.</param> public static void RemoveGenericInteractionHandler(DependencyObject element, UpfTouchTapEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.RemoveHandler(element, GenericInteractionEvent, handler); }
/// <summary> /// Adds a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.Keyboard.PreviewTextInput"/> /// attached event to the specified element. /// </summary> /// <param name="element">The element to which to add the handler.</param> /// <param name="handler">The handler to add to the specified element.</param> public static void AddPreviewTextInputHandler(DependencyObject element, UpfKeyboardEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.AddHandler(element, PreviewTextInputEvent, handler); }
/// <summary> /// Adds a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.GamePad.PreviewAxisDown"/> /// attached event to the specified element. /// </summary> /// <param name="element">The element to which to add the handler.</param> /// <param name="handler">The handler to add to the specified element.</param> public static void AddPreviewAxisDownHandler(DependencyObject element, UpfGamePadAxisChangedEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.AddHandler(element, PreviewAxisDownEvent, handler); }
/// <summary> /// Adds a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.Generic.PreviewGenericInteraction"/> /// attached event to the specified element. /// </summary> /// <param name="element">The element to which to add the handler.</param> /// <param name="handler">The handler to add to the specified element.</param> public static void AddPreviewGenericInteractionHandler(DependencyObject element, UpfGenericInteractionEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.AddHandler(element, PreviewGenericInteractionEvent, handler); }
/// <summary> /// Removes a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.GamePad.ButtonUp"/> /// attached event from the specified element. /// </summary> /// <param name="element">The element from which to remove the handler.</param> /// <param name="handler">The handler to remove from the specified element.</param> public static void RemoveButtonUpHandler(DependencyObject element, UpfKeyboardFocusChangedEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.RemoveHandler(element, ButtonUpEvent, handler); }
/// <summary> /// Removes a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.GamePad.AxisDown"/> /// attached event from the specified element. /// </summary> /// <param name="element">The element from which to remove the handler.</param> /// <param name="handler">The handler to remove from the specified element.</param> public static void RemoveAxisUpHandler(DependencyObject element, UpfGamePadAxisChangedEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.RemoveHandler(element, AxisDownEvent, handler); }
/// <summary> /// Adds a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.Touch.PreviewFingerUp"/> /// attached event to the specified element. /// </summary> /// <param name="element">The element to which to add the handler.</param> /// <param name="handler">The handler to add to the specified element.</param> public static void AddPreviewFingerUpHandler(DependencyObject element, UpfTouchEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.AddHandler(element, PreviewFingerUpEvent, handler); }
/// <summary> /// Removes a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.Touch.FingerMotion"/> /// attached event to the specified element. /// </summary> /// <param name="element">The element from which to remove the handler.</param> /// <param name="handler">The handler to remove from the specified element.</param> public static void RemoveFingerMotionHandler(DependencyObject element, UpfTouchMotionEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.RemoveHandler(element, FingerMotionEvent, handler); }
/// <summary> /// Removes a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.Touch.PreviewTap"/> /// attached event to the specified element. /// </summary> /// <param name="element">The element from which to remove the handler.</param> /// <param name="handler">The handler to remove from the specified element.</param> public static void RemovePreviewTapHandler(DependencyObject element, UpfTouchTapEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.RemoveHandler(element, PreviewTapEvent, handler); }