Did you know there is a new method called DragMove which is part of the Window class and allows you to move the window using a mouse? I certainly did not – till now. This is part of .NET 3.0, specifically part of WPF and . Here is an example from the SDK:
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
{
base.OnMouseLeftButtonDown(e);
// Begin dragging the window
this.DragMove();
}

Similar posts to check out:
- February 3, 2009 -- Exceptions Management (or lack of it) (0)
A good example of what not to do. ... - January 3, 2006 -- Writing High-Perf. Managed Apps? (0)
If you are writing high-perf. managed applications, all the old-world advice from the days of good old COM is still valid. But you do need to think of a few other things such as how the CLR JIT would change things, or the Exception Handling, or Threading and syncing up, or possibly the GC and Allocation Profiles? While this MSDN article is old (now), it still is excellent Food for Thought when it comes to writing high-perf. apps.... - December 31, 2005 -- Exception Management in Threads (0)
Exception Management is a topic near and dear to me personally, primarily because of the lack of understanding of most developers (that I have come across). There is an interesting change in the .NET 2.0 CLR on how it manages unhandled exceptions in a thread. If you write multi-threaded apps then this is important for you to understand. If you don't write multi-threaded apps today, but I presume you would soon, then this is a good learning exercises.
In .NET 2.0 the CLR allows unhandled exceptio...
Tags: .net