Click here to Skip to main content
14,361,357 members
Rate this:
Please Sign up or sign in to vote.
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..
Updated 28-Aug-17 4:23am
Rate this:
Please Sign up or sign in to vote.

Solution 2

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


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[^].

Rate this:
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.
We answered in parallel and it looks like we agree. My 5. :-)
By the way, you found good examples and arguments, I would like to reference your post in future, if you don't mind :-).
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100