Click here to Skip to main content
15,888,269 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi How to add MDI Parent window to my project
Posted
Comments
Sergey Alexandrovich Kryukov 6-Nov-12 23:33pm    
Why?!!
--SA

Thanks goodness: brave Microsoft attempts to discourage its mistakenly introduced MDI model crowned by complete absence if this bad feature in WPF. Nevertheless, CodeProject enquirers don't stop asking for this effective method of getting into extra trouble and scarring off their users, I have no idea why. Thanks to WPF, I don't have to explain what's wrong with MDI. Good riddance.

Instead, for the simplest solution, use TabControl. What you wanted to make a MDI child will be a page on this control. Easy to implement, easy to use, simple and elegant.

Please see also:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages[^],
How to Create MDI Parent Window in WPF?[^].

And, just in case, some of my past answers:
Question on using MDI windows in WPF[^],
MDIContainer giving error[^].

Good luck,
—SA
 
Share this answer
 
hi one way is to host your windows form to wpf.
Other is you can convert your wpf forms to user control and add and remove them from tab control dynamically.
 
Share this answer
 

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