Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Have a wpf window inside another wpf window

Tags:

window

wpf

Is there a way to host a WPF window inside another WPF window. I have a couple of somewhat complex forms in place. But now to simplify things I am trying to merge a few of them as tabpages inside one 'Dashboard' form.

Please note that I am not trying to host a Windows Form, but another WPF window

like image 345
Danish Munir Avatar asked Aug 17 '09 12:08

Danish Munir


People also ask

Will WPF be discontinued?

It may indeed get phased out eventually. “The WPF's goal in user interface and graphics rendering in the . NET Framework 3.0 release is to provide a windowing system for the desktop environment on Microsoft Windows.

How do I navigate to another window in WPF?

NavigationService is for browser navigation within WPF. What you are trying to do is change to a different window TrainingFrm . To go to a different window, you should do this: private void conditioningBtn_Click(object sender, RoutedEventArgs e) { var newForm = new TrainingFrm(); //create your new form.

What is the difference between WPF window and WPF page?

Window is the root control that must be used to hold/host other controls (e.g. Button) as container. Page is a control which can be hosted in other container controls like NavigationWindow or Frame. Page control has its own goal to serve like other controls (e.g. Button). Page is to create browser like applications.


1 Answers

If you want tabpages, why not use a TabControl with UserControls inside ? If you need to transform one of these tabs to a floating window, just put the UserControl in a new Window...

like image 144
Thomas Levesque Avatar answered Sep 22 '22 05:09

Thomas Levesque