Wednesday, 30 July 2014

Drag window by clicking anywhere - WPF

XAML

MouseDown="Window_MouseDown_1"


.CS
 private void Window_MouseDown_1(object sender, MouseButtonEventArgs e)
        {
            if (e.LeftButton == MouseButtonState.Pressed)
            {
                this.DragMove();
            }
        }

No comments:

Post a Comment