Answers

Update: I solved the problem by P/Invoking to GetAsyncKeyState and using VK_LBUTTON to check the mouse left button state. It would be nice if the WPF Mouse class already had this functionality, or if the Key enumeration included values for the mouse buttons so that Keyboard.GetKeyStates could be used.

All replies

There is no event which is raised when the user is finished resizing a Window. The SizeChanged event will be raised (as a result of the protected OnRenderSizeChanged being invoked) many times during a resizing gesture, so to speak. What you can do is start a DispatcherTimer when the Window is resized. Every time the resizing occurs, restart the timer. When the timer ticks, perform whatever "post-resizing" logic your application needs, and stop the timer.

Update: I solved the problem by P/Invoking to GetAsyncKeyState and using VK_LBUTTON to check the mouse left button state. It would be nice if the WPF Mouse class already had this functionality, or if the Key enumeration included values for the mouse buttons so that Keyboard.GetKeyStates could be used.