On Oct 1, 11:11 pm, "Dean Slindee" <slin...@charter.netwrote:
Quote:
I dock Windows forms inside of Windows forms in *all* my projects, sometimes
4 or 5 window levels deep. Without this capability in WPF, WPF is mostly a
non-starter for me.
How are you doing that in Window Forms? Are you setting the parent of
one form to another and then setting the TopLevel property to false
before calling Show? What advantage does this give you over using,
say, a User Control? For what reason do you require your apps to be
this way?
That being said, I don't believe that a Window can be hosted inside a
Window, at least not like you would do with a Windows Form as in non-
WPF apps. I tried to do it with a simple test but was unable. That
doesn't mean it can't be done, just I couldn't figure it out in 5
minutes! You can instantiate other Windows as child windows by
setting the Owner property, but I don't think they can actually be
embedded within the main Window.
When using WPF, you have to change the way you think about application
design. If you could describe the reason for hosting forms in forms,
maybe there is a more WPF way to do it.
Chris