コード例 #1
0
ファイル: SceneView.xaml.cs プロジェクト: zhangf911/gemini
 // We use the left mouse button to do exclusive capture of the mouse so we can drag and drag
 // to rotate the cube without ever leaving the control
 private void OnGraphicsControlHwndLButtonDown(object sender, MouseEventArgs e)
 {
     _output.AppendLine("Mouse left button down");
     _previousPosition = e.GetPosition(this);
     GraphicsControl.CaptureMouse();
     GraphicsControl.Focus();
 }
コード例 #2
0
 // We use the left mouse button to do exclusive capture of the mouse so we can drag and drag
 // to rotate the cube without ever leaving the control
 private void OnGraphicsControlHwndLButtonDown(object sender, MouseEventArgs e)
 {
     _previousPosition = e.GetPosition(this);
     GraphicsControl.CaptureMouse();
     GraphicsControl.Focus();
     this.Cursor = Cursors.None;
     _lockCursor = true;
 }
コード例 #3
0
 // We use the left mouse button to do exclusive capture of the mouse so we can drag and drag
 // to rotate the cube without ever leaving the control
 private void OnGraphicsControlHwndLButtonDown(object sender, MouseEventArgs e)
 {
     output.AppendLine("Mouse left button down");
     GraphicsControl.CaptureMouse();
     GraphicsControl.Focus();
 }
コード例 #4
0
        // We use the left mouse button to do exclusive capture of the mouse so we can drag and drag
        // to rotate the cube without ever leaving the control

        private void OnGraphicsControlHwndLButtonDown(object sender, MouseEventArgs e)
        {
            _previousPosition = e.GetPosition(this);
            GraphicsControl.CaptureMouse();
            GraphicsControl.Focus();
        }
コード例 #5
0
 private void OnGraphicsControlHwndLButtonDown(object sender, MouseEventArgs e)
 {
     //GraphicsControl.CaptureMouse();
     GraphicsControl.Focus();
 }
コード例 #6
0
 private void GraphicsControl_OnMouseRightButtonDown(object sender, MouseButtonEventArgs e)
 => GraphicsControl.Focus();