Draggable WPF window with no border
<p>I'm using <code>WindowStyle=None</code> to remove the border of a WPF window. In the MainWindow.xaml.cs file I just added the following line to the constructor: </p>

<pre><code>this.MouseLeftButtonDown += delegate { this.DragMove(); };
</code></pre>

<p>This somewhat works and lets me drag the window around wherever I left click inside the MainWindow, as long as it's not on any control. Because that's where I get problems. I have a textbox that takes up all the space inside the window, and as soon as I do this I can no longer move the window around when left clicking inside the textbox. </p>

<p>How can I make the window move around if the user left clicks inside the window and drags the mouse no matter what control the user is hitting?</p>

<p>Or simpler, how can I make the window move when the user left clicks and drags inside the textbox control?</p>