Load a Page into a ContentControl
问题 I have a ContentControl where I want to load the page myPage2 . My XAML Codefrom this page looks like this: <Page x:Class="ExampleApp.myPage2"> <Grid x:Name="Content" Height="651" Width="941" Background="White"> ... ... </Grid> </Page> I know that I can load a resource from a page with this Code: protected override DataTemplate SelectTemplateCore(object item, DependencyObject container) { var contentControl = (ContentControl)container; return (DataTemplate) contentControl.Resources