示例#1
0
 private void Canvas_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     if (menuState != null)
     {
         if (this.Cursor != Cursors.Arrow)
         {
             this.Cursor = Cursors.Arrow;
         }
         menuState.MouseLeftButtonUp(e.GetPosition(canvas));
     }
     Mouse.Capture(null);
 }