Click here to Skip to main content
16,018,158 members
Please Sign up or sign in to vote.
1.80/5 (3 votes)
See more:
In Window Application There is a MDI Parent Form.. But in case of WPF there is no Parent window. In some websites they create parent window in WPF But they are using User Control. Is there is any possible for create a Parent Window in WPF without using User Control..
Posted
Updated 28-Aug-17 3:23am

Hurray! WPF does not support MDI. Finally Microsoft decided to trash this garbage.

See:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages[^].

See also my past answers:
Question on using MDI windows in WPF[^],
MDIContainer giving error[^].

This is not MDI but the author of the article just called it MDI. In fact, this is not MDI but something much better: Tabbed MDI in WPF[^].

—SA
 
Share this answer
 
WPF has no concept of MDI applications. In fact Microsoft is trying to discourage any one using that form of application. You are much better off creating a Tabbed Document Interface application using the TabControl, and opening each document as a separate tab. Take a look at all recent applications, such as Internet Explorer, Firefox Microsoft Office applications etc, and you will see that they all use tabs to present multiple documents to the User. Having said that you can of course roll your own version of MDI using separate windows, although I really discourage this.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 18-Nov-11 2:08am    
We answered in parallel and it looks like we agree. My 5. :-)
--SA
Sergey Alexandrovich Kryukov 18-Nov-11 2:10am    
By the way, you found good examples and arguments, I would like to reference your post in future, if you don't mind :-).
--SA
Wayne Gaylard 18-Nov-11 2:18am    
Of course!

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900