Ejemplo n.º 1
0
 private void ResizeGripMouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     beginPoint = e.GetPosition(this);
     dragging   = true;
     // Ensure object receives all mouse events.
     ResizeGrip.CaptureMouse();
 }
Ejemplo n.º 2
0
        private void ResizeGripPreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            _downWidth  = _chrome.ActualWidth + PopupShadowDepth;
            _downHeight = _chrome.ActualHeight + PopupShadowDepth;

            var p = e.GetPosition(_resizeGrip);

            p       = _resizeGrip.PointToScreen(p);
            _ptDown = p;

            _resizeGrip.CaptureMouse();
        }
Ejemplo n.º 3
0
        /*+---------------------------------------------------------------------+
         |                                                                     |
         |                 ResizeGrip Event Handling                           |
         |                                                                     |
         +---------------------------------------------------------------------*/

        private void ResizeGrip_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            _downWidth  = _chrome.ActualWidth + POPUP_SHADOW_DEPTH;
            _downHeight = _chrome.ActualHeight + POPUP_SHADOW_DEPTH;
            _downTop    = _popup.VerticalOffset;

            var p = e.GetPosition(_resizeGrip);

            p       = _resizeGrip.PointToScreen(p);
            _ptDown = p;

            _resizeGrip.CaptureMouse();
        }