private void OnElementMouseUp(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { Dragger.StopDrag(); } }
private void StartDrag() { if (tree.Count == 0) { return; } var result = from scene in tree.GetAllScenes() where (scene as Control) != null select scene as Control; Dragger.OnDrag += OnDragHandler; Dragger.OnStartDrag += OnStartDrag; Dragger.OnStopDrag += OnStopDrag; if (Focus == null) { Dragger.StartDrag(result.ToArray()); } else { Dragger.StartDrag(Focus as Control); } }
private void OnMouseUp(object sender, MouseEventArgs e) { Dragger.StopDrag(); }