internal void OnDoubleClick(object sender, DoubleClickEventArgs e) { DoubleClickEventHandler ev = DoubleClick; if (ev != null) { ev(this, e); } }
protected virtual void OnDoubleClickEvent() { DoubleClickEventHandler handler = DoubleClickEvent; if (handler != null) { handler(); } }
public static void RemoveDoubleClickHandler(DependencyObject d, DoubleClickEventHandler handler) { var element = d as UIElement; if (element == null) { return; } element.RemoveHandler(DoubleClickEvent, handler); }