MahApps/MahApps.Metro — pull request #64 by akoeplinger (2012-04-02 08:50:30+00:00)
Title: Implemented window resize functionality as described in #30.

This implements window resizing on all four window borders.

I originally stated in #30 that I'll implement it with four invisible rectangles. This approach however led to really annoying problems with getting the cursor right and resizing the window was terribly slow when using the WPF properties (width, height, top, left) directly.
This instead uses the window message WM_NCHITTEST, with the advantage that the OS figures out which cursor to use, disables resizing when the window is maximized and handles the resizing itself.