Пример #1
0
        internal void OnDoubleClick(object sender, DoubleClickEventArgs e)
        {
            DoubleClickEventHandler ev = DoubleClick;

            if (ev != null)
            {
                ev(this, e);
            }
        }
Пример #2
0
        protected virtual void OnDoubleClickEvent()
        {
            DoubleClickEventHandler handler = DoubleClickEvent;

            if (handler != null)
            {
                handler();
            }
        }
Пример #3
0
        public static void RemoveDoubleClickHandler(DependencyObject d, DoubleClickEventHandler handler)
        {
            var element = d as UIElement;

            if (element == null)
            {
                return;
            }
            element.RemoveHandler(DoubleClickEvent, handler);
        }