Example #1
0
 private void OnElementMouseUp(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         Dragger.StopDrag();
     }
 }
Example #2
0
        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);
            }
        }
Example #3
0
 private void OnMouseUp(object sender, MouseEventArgs e)
 {
     Dragger.StopDrag();
 }