Monday, September 19, 2011

Myth Self Note 8 : C# - Moving a WPF Window with a WindowStyle of None

Moving a WPF Window when the WindowStyle is set to None.

Some use Thumb and DragDelta. But here i found easier way.

use DragMove();
private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
DragMove();
}

Ref: http://cloudstore.blogspot.com/2008/06/moving-wpf-window-with-windowstyle-of.html

0 comments: