
If you are giving example of "Sticky Notes" of Win7, you may have noticed that it does NOT have standard window border. I then attach them to my dialog box Views with: Public class WinDragMoveBehavior : DragMoveBehavior Void MouseDown( object sender, EventArgs ea ) => Window.GetWindow( sender as T )?.DragMove() Public class DragMoveBehavior : Behavior where T : FrameworkElementĪssociatedObject.MouseLeftButtonDown += MouseDown ĪssociatedObject.MouseLeftButtonDown -= MouseDown / on it that is not a control (ie, button) / behavior that makes a window/dialog draggable by clicking anywhere This makes them very easy to use with MVVM (I use Caliburn Micro). I still use basically the same method for preventing edge snapping and moving my windows, but I now have them packed into custom Behavior classes that I can attach to a Window or UserControl. It's been a while since I wrote this, but since people still look at this I'll update it with what I use now. Void Window1_MouseUp( object sender, MouseButtonEventArgs e ) If( e.LeftButton = MouseButtonState.Pressed ) void Window1_MouseDown(object sender, MouseButtonEventArgs e)


I modified it below and now it works as expect: still resizable, but no AeroSnap at all. I tried Barn Monkey's solution, which partially worked, but it would still show the AeroSnap graphic and resize the app to fullscreen size. I used DragMove() to move the window, and when It is maximized by AeroSnap, the window becomes unmovable and hence locked in place. I recently needed to do this to a custom, resizable ResizeMode = CanResizeWithGrip WPF window with no window decorations (no title bar and buttons).
