private void ThumbResize_DragDelta(object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs e)
        {
            var height = Height - e.VerticalChange;
            var width  = Width + e.HorizontalChange;

            height = height.Clamp(MinHeight, MaxHeight);
            width  = width.Clamp(MinWidth, MaxWidth);

            var dHeight = Height - height;

            Height = height;
            Width  = width;

            Top += dHeight;
            _controller.NotifyOverlayMoved(true, (int)Left, (int)Top);
            _controller.NotifyOverlayResized(true, (int)width, (int)height);
        }
 private void NumericUpDownPositionOnValueChanged(object sender, EventArgs eventArgs)
 {
     _controller.NotifyOverlayMoved(false, (int)numericUpDownX.Value, (int)numericUpDownY.Value);
 }
 private void OnMove(object sender, EventArgs e)
 {
     _controller.NotifyOverlayMoved(true, Left, Top);
 }