WPF window hide the title bar on a window without losing the ability to move it wpf窗口隐藏标题栏但依然可以拖动

http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/718522c5-f5d1-4bc6-8340-4da06eaa5b85

 

 

1. set WindowStyle=None

 

2. See the DragMove method defined by the Window class.

 


I found a reference to this on http://expressionblend.com/forums/thread/192.aspx
and I implemented this as follows:-

<Window
....(attribs)
...

MouseLeftButtonDown="Window_MouseLeftButtonDown">

...
</Window>

Then the MouseLeftButtonDown method was:

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

Thanks for that.

(I also downloaded your book http://www.charlespetzold.com/dotnet/DotNetBookZero11.pdf - any chance of an eSignature ;-))

 

你可能感兴趣的:(WPF window hide the title bar on a window without losing the ability to move it wpf窗口隐藏标题栏但依然可以拖动)