using Windows.UI.Xaml.Controls; namespace TestApp { public class CustomPage : Page { public CustomPage() { this.BuildPage(); } private void BuildPage() { var panel = new StackPanel(); panel.Children.Add(new TextBlock { Text = "Hello World" }); this.Content = panel; } } }
CustomPage myNewPage = new CustomPage(); Frame.Navigate(myNewPage.GetType());
typeof(myNewPage);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)