/// <summary>Adds an event handler for the <see cref="E:System.Windows.Controls.Validation.Error" /> attached event from the specified object.</summary> /// <param name="element">The <see cref="T:System.Windows.UIElement" /> or <see cref="T:System.Windows.ContentElement" /> object to remove <paramref name="handler" /> from.</param> /// <param name="handler">The handler to remove.</param> // Token: 0x0600596A RID: 22890 RVA: 0x0018AE98 File Offset: 0x00189098 public static void RemoveErrorHandler(DependencyObject element, EventHandler <ValidationErrorEventArgs> handler) { UIElement.RemoveHandler(element, Validation.ErrorEvent, handler); }
/// <summary> /// Removes 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 removed</param> public static void RemoveContextMenuClosingHandler(DependencyObject element, ContextMenuEventHandler handler) { UIElement.RemoveHandler(element, ContextMenuClosingEvent, handler); }
/// <summary>Removes 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 removed.</param> // Token: 0x060058B4 RID: 22708 RVA: 0x00188A10 File Offset: 0x00186C10 public static void RemoveToolTipClosingHandler(DependencyObject element, ToolTipEventHandler handler) { UIElement.RemoveHandler(element, ToolTipService.ToolTipClosingEvent, handler); }