/// <summary> /// Removes a handler for the 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, "element"); Contract.Require(handler, "handler"); IInputElementHelper.RemoveHandler(element, GenericInteractionEvent, 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 PreviewTap 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 AddPreviewTapHandler(DependencyObject element, UpfTouchTapEventHandler handler) { Contract.Require(element, "element"); Contract.Require(handler, "handler"); IInputElementHelper.AddHandler(element, PreviewTapEvent, handler); }
/// <summary> /// Adds 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 to which to add the handler.</param> /// <param name="handler">The handler to add to the specified element.</param> public static void AddPreviewTapHandler(DependencyObject element, UpfTouchTapEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.AddHandler(element, PreviewTapEvent, handler); }
/// <summary> /// Removes 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 from which to remove the handler.</param> /// <param name="handler">The handler to remove from the specified element.</param> public static void RemovePreviewGenericInteractionHandler(DependencyObject element, UpfTouchTapEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.RemoveHandler(element, PreviewGenericInteractionEvent, handler); }
/// <summary> /// Removes a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.Touch.Tap"/> /// 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 RemoveTapHandler(DependencyObject element, UpfTouchTapEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.RemoveHandler(element, TapEvent, handler); }