Beispiel #1
0
        protected override void OnMouseDown(MouseEventArgs e)
        {
            e.PreventBubble();

            if (!IsEnabled)
            {
                return;
            }

            Capture = true;

            _state |= State.Down;

            Invalidate();
        }
Beispiel #2
0
        protected override void OnMouseUp(MouseEventArgs e)
        {
            if (!IsEnabled)
            {
                return;
            }

            e.PreventBubble();

            Capture = false;

            _state &= ~State.Down;

            if (IsMouseDirectlyOver)
            {
                PerformClick();
            }
        }
 protected override void OnMouseUp(MouseEventArgs e)
 {
     e.PreventBubble();
     _control.Activate(_item.Cookie);
 }
 void _close_MouseUp(object sender, MouseEventArgs e)
 {
     e.PreventBubble();
     _control.Dismiss(_item.Cookie);
 }
Beispiel #5
0
        protected override void OnMouseUp(MouseEventArgs e)
        {
            if (!IsEnabled)
                return;

            e.PreventBubble();

            Capture = false;

            _state &= ~State.Down;

            if (IsMouseDirectlyOver)
                PerformClick();
        }
Beispiel #6
0
        protected override void OnMouseDown(MouseEventArgs e)
        {
            e.PreventBubble();

            if (!IsEnabled)
                return;

            Capture = true;

            _state |= State.Down;

            Invalidate();
        }