コード例 #1
0
 void PlaceVisual_Dragging(object sender, DraggingEventArgs e)
 {
     InputMode = InputMode.Idle;
 }
コード例 #2
0
 void PlaceVisual_Dragging(object sender, DraggingEventArgs e)
 {
     if (Selected)
     {
         Position = new Point(
             draggingStartPosition.X + e.Delta.X,
             draggingStartPosition.Y + e.Delta.Y);
         this.InvalidateVisual();
     }
 }