/// <summary> /// Removes a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.FocusManager.LostFocus"/> /// 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 RemoveLostFocusHandler(DependencyObject element, UpfRoutedEventHandler handler) { Contract.Require(element, nameof(element)); Contract.Require(handler, nameof(handler)); UIElementHelper.RemoveHandler(element, LostFocusEvent, handler); }
/// <summary> /// Removes a handler for the <see cref="E:Ultraviolet.Presentation.Controls.Primitives.Selector.Unselected"/> /// attached event from the specified element. /// </summary> /// <param name="element">The element from which to remove the event handler.</param> /// <param name="handler">The event handler to remove from the element.</param> public static void RemoveUnselectedHandler(DependencyObject element, UpfRoutedEventHandler handler) { UIElementHelper.RemoveHandler(element, UnselectedEvent, handler); }
/// <summary> /// Removes a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Controls.ToolTipService.ToolTipClosing"/> /// 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 RemoveToolTipClosingHandler(DependencyObject element, UpfToolTipEventHandler handler) { Contract.Require(element, nameof(element)); UIElementHelper.RemoveHandler(element, ToolTipClosingEvent, handler); }