/// <summary>Adds a handler for the <see cref="E:System.Windows.Controls.ToolTipService.ToolTipClosing" /> attached event.</summary> /// <param name="element">The <see cref="T:System.Windows.UIElement" /> or <see cref="T:System.Windows.ContentElement" /> that listens to this event.</param> /// <param name="handler">The event handler to be added.</param> // Token: 0x060058B3 RID: 22707 RVA: 0x00188A02 File Offset: 0x00186C02 public static void AddToolTipClosingHandler(DependencyObject element, ToolTipEventHandler handler) { UIElement.AddHandler(element, ToolTipService.ToolTipClosingEvent, handler); }
/// <summary> /// Adds a handler for the ContextMenuClosing attached event /// </summary> /// <param name="element">UIElement or ContentElement that listens to this event</param> /// <param name="handler">Event Handler to be added</param> public static void AddContextMenuClosingHandler(DependencyObject element, ContextMenuEventHandler handler) { UIElement.AddHandler(element, ContextMenuClosingEvent, handler); }