Beispiel #1
0
 private static void Window_MouseDown(this IDragWindow dw, object sender, MouseButtonEventArgs e)
 {
     if (e.LeftButton == MouseButtonState.Pressed)
     {
         (dw?.Window)?.DragMove();
     }
 }
Beispiel #2
0
 /// <summary>
 /// Call this in Construct Method.
 /// </summary>
 /// <param name="dw"></param>
 public static void InitDragWindow(this IDragWindow dw)
 {
     dw.Window.MouseDown += dw.Window_MouseDown;
 }