Mediator
Mediator

Reputation: 15378

Can I insert a Window into another Window?

I have two Window (name: window1 \ window2) whether it is possible to insert them in another Window (window3). What would have once been seen window1 \ window2, buyout lie window3?

Upvotes: 0

Views: 1287

Answers (2)

Kent Boogaart
Kent Boogaart

Reputation: 178630

No, not possible. But if you separate the content of the windows out into separate UserControls, then it is easy to include those UserControls inside another Window.

Upvotes: 1

Walt Ritscher
Walt Ritscher

Reputation: 7037

You can use a Frame. Then load a UserControl or Page into the frame. You cannot put a Window within the Frame however.

The benefit of use a Page is that you gain access to the NavigationService. NavigationService gives you a forward and back stack history of the pages your user visits. Here's another thread discussing a similar question.

Upvotes: 0

Related Questions