/// <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 PreviewKeyUp 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 AddPreviewKeyUpEventHandler(DependencyObject element, UpfKeyEventHandler handler) { Contract.Require(element, "element"); Contract.Require(handler, "handler"); IInputElementHelper.AddHandler(element, PreviewKeyUpEvent, handler); }
/// <summary> /// Removes a handler for the 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, "element"); Contract.Require(handler, "handler"); IInputElementHelper.RemoveHandler(element, KeyUpEvent, handler); }
/// <summary> /// Removes a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.Keyboard.PreviewKeyUp"/> /// 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 RemovePreviewKeyUpHandler(DependencyObject element, UpfKeyEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.RemoveHandler(element, PreviewKeyUpEvent, handler); }