Welcome to Windows Presentation Foundation (WPF)
Top Tasks :

Restricting Window movement to the bounds of the Owner window

File Details
Downloads: 423 File Size: 14.6kB
Posted By: ifpx895 Views: 2459
Date Added: 1 Feb 2007

This sample provides a way to restrict window movement.  In this case, I've restricted it to the Owner bounds.  It does not solve all the corner cases, however, it does provide a general mechanism on how such a scenario can be implemented and handles high DPI cases.  Furthermore, this sample shows a good way to hook up a listener for win32 window messages.

Filed under:
Comments
No comments exist for this file.

Add Comment

Name (required)
Web Site (optional)
Comment (required)
Add

Copyright © 2006 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us