コード例 #1
0
 private void CancelDragMode()
 {
     this.StopSnappingEngine();
     Mouse.OverrideCursor = (Cursor)null;
     this.drag.Dispose();
     this.drag = (AnnotationVisual.DragData)null;
     this.ReleaseMouseCapture();
 }
コード例 #2
0
 private void OnDragBegin()
 {
     this.CaptureMouse();
     this.drag = new AnnotationVisual.DragData()
     {
         Engaged               = false,
         InitialCursorPos      = Mouse.GetPosition((IInputElement)null),
         OriginalAnnotationPos = this.Annotation.Position
     };
 }