Пример #1
0
        protected override void OnMouseDown(MouseEventArgs e)
        {
            e.PreventBubble();

            if (!IsEnabled)
            {
                return;
            }

            Capture = true;

            _state |= State.Down;

            Invalidate();
        }
Пример #2
0
        protected override void OnMouseUp(MouseEventArgs e)
        {
            if (!IsEnabled)
            {
                return;
            }

            e.PreventBubble();

            Capture = false;

            _state &= ~State.Down;

            if (IsMouseDirectlyOver)
            {
                PerformClick();
            }
        }
Пример #3
0
 protected override void OnMouseUp(MouseEventArgs e)
 {
     e.PreventBubble();
     _control.Activate(_item.Cookie);
 }
Пример #4
0
 void _close_MouseUp(object sender, MouseEventArgs e)
 {
     e.PreventBubble();
     _control.Dismiss(_item.Cookie);
 }
Пример #5
0
        protected override void OnMouseUp(MouseEventArgs e)
        {
            if (!IsEnabled)
                return;

            e.PreventBubble();

            Capture = false;

            _state &= ~State.Down;

            if (IsMouseDirectlyOver)
                PerformClick();
        }
Пример #6
0
        protected override void OnMouseDown(MouseEventArgs e)
        {
            e.PreventBubble();

            if (!IsEnabled)
                return;

            Capture = true;

            _state |= State.Down;

            Invalidate();
        }