How can I load a WPF window (xaml) inside other WPF windows in a panel?

Is it possible?

I used the Frame control and: show (ex: showwindow.xaml)

But I get this error:

The root element is not valid for navigation.

+3
source share
2 answers

make sure you can navigate (show) the window using:

YourFrame.Navigate (YourWindow);

However, I do not like this multi-window approach; it’s better to create some user controls to segment your application.

+2
source

Page Frame. Windows, WPF - , , .. , , .
Microsoft

+1

Source: https://habr.com/ru/post/1747190/


All Articles