/// <summary> /// Adds a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.Keyboard.TextEditing"/> /// 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 AddTextEditingHandler(DependencyObject element, UpfKeyboardEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.AddHandler(element, TextEditingEvent, handler); }
/// <summary> /// Adds a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.Keyboard.KeyUp"/> /// 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 AddKeyUpHandler(DependencyObject element, UpfKeyEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.AddHandler(element, KeyUpEvent, handler); }
/// <summary> /// Adds a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.Keyboard.LostKeyboardFocus"/> /// 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 AddLostKeyboardFocusHandler(DependencyObject element, UpfRoutedEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.AddHandler(element, LostKeyboardFocusEvent, handler); }
/// <summary> /// Adds 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 to which to add the handler.</param> /// <param name="handler">The handler to add to the specified element.</param> public static void AddGenericInteractionHandler(DependencyObject element, UpfGenericInteractionEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.AddHandler(element, GenericInteractionEvent, 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.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> /// Adds 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 to which to add the handler.</param> /// <param name="handler">The handler to add to the specified element.</param> public static void AddFingerMotionHandler(DependencyObject element, UpfTouchMotionEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.AddHandler(element, FingerMotionEvent, handler); }