/// <summary> /// Removes a handler to the DpiChange event. /// </summary> /// <param name="element">The element.</param> /// <param name="handler">The handler.</param> public static void RemoveDpiChangeHandler(DependencyObject element, EventHandler <DpiChangeEventArgs> handler) { EventUtil.RemoveHandler(element, DpiEvents.DpiChangeEvent, (Delegate)handler); }
/// <summary> /// Removes a handler to the MouseHWheel event. /// </summary> /// <param name="element">The element.</param> /// <param name="handler">The handler.</param> public static void RemoveMouseHWheelHandler(DependencyObject element, MouseWheelEventHandler handler) { EventUtil.RemoveHandler(element, MouseEvents.MouseHWheelEvent, (Delegate)handler); }