protected virtual void OnWindowlessDoubleClick(WindowlessControlHost sender, WindowlessMouseEventArgs e)
 {
     if (WindowlessDoubleClick != null)
     {
         WindowlessDoubleClick(sender, e);
     }
 }
Esempio n. 2
0
 protected override void OnWindowlessMouseUp(WindowlessControlHost sender, WindowlessMouseEventArgs e)
 {
     if (sender == this)
     {
         OnClickUp();
     }
     base.OnWindowlessMouseUp(sender, e);
 }
Esempio n. 3
0
        protected override void OnWindowlessMouseDown(WindowlessControlHost sender, WindowlessMouseEventArgs e)
        {
            base.OnWindowlessMouseDown(sender, e);
            IWindowlessControl control = FindControlAtPoint(new Point(e.X, e.Y));

            if (control == null && control != myCurrentSelection)
            {
                return;
            }
            e.Handled = true;
            ChangeSelection(control as IInteractiveContentPresenter);
            OnClickDown();
        }
 protected override void OnDoubleClick(EventArgs e)
 {
     Point p = PointToClient(new Point(MousePosition.X, MousePosition.Y));
     Control parent = this;
     WindowlessMouseEventArgs we = new WindowlessMouseEventArgs(MouseButtons.Left, 1, p.X, p.Y, 0, false);
     while (parent != null)
     {
         WindowlessControlHost parentHost = parent as WindowlessControlHost;
         if (parentHost != null)
             parentHost.OnWindowlessDoubleClick(this, we);
         we = new WindowlessMouseEventArgs(MouseButtons.Left, 1, p.X + Left, p.Y + Top, 0, we.Handled);
         parent = parent.Parent;
     }
     base.OnDoubleClick(e);
 }
        protected override void OnDoubleClick(EventArgs e)
        {
            Point   p      = PointToClient(new Point(MousePosition.X, MousePosition.Y));
            Control parent = this;
            WindowlessMouseEventArgs we = new WindowlessMouseEventArgs(MouseButtons.Left, 1, p.X, p.Y, 0, false);

            while (parent != null)
            {
                WindowlessControlHost parentHost = parent as WindowlessControlHost;
                if (parentHost != null)
                {
                    parentHost.OnWindowlessDoubleClick(this, we);
                }
                we     = new WindowlessMouseEventArgs(MouseButtons.Left, 1, p.X + Left, p.Y + Top, 0, we.Handled);
                parent = parent.Parent;
            }
            base.OnDoubleClick(e);
        }
 protected virtual void OnWindowlessMouseUp(WindowlessControlHost sender, WindowlessMouseEventArgs e)
 {
 }
 protected virtual void OnWindowlessDoubleClick(WindowlessControlHost sender, WindowlessMouseEventArgs e)
 {
     if (WindowlessDoubleClick != null)
         WindowlessDoubleClick(sender, e);
 }
Esempio n. 8
0
 protected override void OnWindowlessMouseUp(WindowlessControlHost sender, WindowlessMouseEventArgs e)
 {
     if (sender == this)
         OnClickUp();
     base.OnWindowlessMouseUp(sender, e);
 }
Esempio n. 9
0
 protected override void OnWindowlessMouseDown(WindowlessControlHost sender, WindowlessMouseEventArgs e)
 {
     base.OnWindowlessMouseDown(sender, e);
     IWindowlessControl control = FindControlAtPoint(new Point(e.X, e.Y));
     if (control == null && control != myCurrentSelection)
         return;
     e.Handled = true;
     ChangeSelection(control as IInteractiveContentPresenter);
     OnClickDown();
 }
 protected virtual void OnWindowlessMouseDown(WindowlessControlHost sender, WindowlessMouseEventArgs e)
 {
 }
 void myDropdown_WindowlessClick(WindowlessControlHost sender, WindowlessMouseEventArgs e)
 {
     Content = myItemsControl.CurrentSelection;
     IsEditing = false;
 }