/// <summary> /// Adds a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.Mouse.PreviewMouseUp"/> /// 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 AddPreviewMouseUpHandler(DependencyObject element, UpfMouseButtonEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.AddHandler(element, PreviewMouseUpEvent, handler); }
/// <summary> /// Removes a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.Mouse.MouseUp"/> /// attached event from the specified element. /// </summary> /// <param name="element">The element to which to Remove the handler.</param> /// <param name="handler">The handler to remove from the specified element.</param> public static void RemoveMouseDownHandler(DependencyObject element, UpfMouseButtonEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.RemoveHandler(element, MouseUpEvent, handler); }
/// <summary> /// Adds a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.Mouse.MouseDoubleClick"/> /// 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 AddMouseDoubleClickHandler(DependencyObject element, UpfMouseButtonEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); IInputElementHelper.AddHandler(element, MouseDoubleClickEvent, handler); }
/// <summary> /// Removes a handler for the MouseDoubleClick attached event from the specified element. /// </summary> /// <param name="element">The element to which to Remove the handler.</param> /// <param name="handler">The handler to remove from the specified element.</param> public static void RemoveMouseDoubleClickHandler(DependencyObject element, UpfMouseButtonEventHandler handler) { Contract.Require(element, "element"); Contract.Require(handler, "handler"); IInputElementHelper.RemoveHandler(element, MouseDoubleClickEvent, handler); }
/// <summary> /// Removes a handler for the PreviewMouseUp 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 RemovePreviewMouseUpHandler(DependencyObject element, UpfMouseButtonEventHandler handler) { Contract.Require(element, "element"); Contract.Require(handler, "handler"); IInputElementHelper.RemoveHandler(element, PreviewMouseUpEvent, handler); }
/// <summary> /// Adds a handler for the MouseUp 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 AddMouseDownHandler(DependencyObject element, UpfMouseButtonEventHandler handler) { Contract.Require(element, "element"); Contract.Require(handler, "handler"); IInputElementHelper.AddHandler(element, MouseUpEvent, handler); }
/// <summary> /// Adds a handler for the PreviewMouseClick 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 AddPreviewMouseClickHandler(DependencyObject element, UpfMouseButtonEventHandler handler) { Contract.Require(element, "element"); Contract.Require(handler, "handler"); IInputElementHelper.AddHandler(element, PreviewMouseClickEvent, handler); }