Exemplo n.º 1
0
        /// <summary>
        /// Removes a handler for the 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, "element");

            UIElementHelper.RemoveHandler(element, ToolTipClosingEvent, handler);
        }
Exemplo n.º 2
0
        /// <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);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Adds a handler for the ToolTipOpening 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 AddToolTipOpeningHandler(DependencyObject element, UpfToolTipEventHandler handler)
        {
            Contract.Require(element, "element");

            UIElementHelper.AddHandler(element, ToolTipOpeningEvent, handler);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Adds a handler for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Controls.ToolTipService.ToolTipOpening"/>
        /// 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 AddToolTipOpeningHandler(DependencyObject element, UpfToolTipEventHandler handler)
        {
            Contract.Require(element, nameof(element));

            UIElementHelper.AddHandler(element, ToolTipOpeningEvent, handler);
        }