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