Click here to Skip to main content
15,886,632 members
Articles / Desktop Programming / WPF

WPF: Center Child Window

Rate me:
Please Sign up or sign in to vote.
4.43/5 (11 votes)
15 Jun 2009CPOL 63.8K   6  
Here's a method I've found for centering a window to either its parent or the main window for the application, in WPF.
No downloads associated with this content

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions