Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# WPF
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 17-Nov-11 20:36pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
SAKryukov at 18-Nov-11 2:08am
   
We answered in parallel and it looks like we agree. My 5. :-)
--SA
SAKryukov at 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 at 18-Nov-11 2:18am
   
Of course!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 275
1 OriginalGriff 230
2 BillWoodruff 173
3 CPallini 155
4 Kamal Rocks 144
0 OriginalGriff 5,655
1 DamithSL 4,506
2 Maciej Los 3,997
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 18 Nov 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100