예제 #1
0
 private void Window_MouseDown(object sender, MouseButtonEventArgs e)
 {
     if (e.LeftButton == MouseButtonState.Pressed)
     {
         canvas.MouseDown(e.GetPosition(this).ToPoint(), out PointF point);
     }
     else
     {
         canvas.BeginDrag(e.GetPosition(this).ToPoint());
         beginDrag = true;
     }
 }