private void Application_Startup(object sender, StartupEventArgs e) { RootVisual = new MainPageView {DataContext = new MainPageViewModel()}; }