Example #1
0
        private void MoveThumb_DragDelta(object sender, DragDeltaEventArgs e)
        {
            vMixController.Widgets.vMixControl item = this.DataContext as vMixController.Widgets.vMixControl;

            if (item != null && !item.Locked)
            {
                item.Left = Math.Round(item.Left + e.HorizontalChange);
                item.Top  = Math.Round(item.Top + e.VerticalChange);
                item.AlignByGrid();

                GalaSoft.MvvmLight.Messaging.Messenger.Default.Send <Triple <vMixControl, double, double> >(new Triple <vMixControl, double, double>(item, e.HorizontalChange, e.VerticalChange));
            }
        }
Example #2
0
 public bool Intersect(vMixControl c)
 {
     return(new Rect(Left, Top, Width, Height).Contains(new Rect(c.Left, c.Top, c.Width, c.Height)));
 }
Example #3
0
 void PhotoMoveThumb_DragStarted(object sender, DragStartedEventArgs e)
 {
     vMixController.Widgets.vMixControl item = this.DataContext as vMixController.Widgets.vMixControl;
     GalaSoft.MvvmLight.Messaging.Messenger.Default.Send(new Pair <vMixControl, bool>(item, true));
     //item.IsSelected = true;
 }
Example #4
0
 void PhotoMoveThumb_DragStarted(object sender, DragStartedEventArgs e)
 {
     vMixController.Widgets.vMixControl item = this.DataContext as vMixController.Widgets.vMixControl;
     //item.IsSelected = true;
 }