私のアプリケーションは、現在、MainPage.xaml
起動時に行きます(ただし、どこに設定されているかわかりません)。
条件によっては別のページから始められるようにしたい。Application_Launching()
このコードをページ内に追加できると思いApp.xaml.cs
ます:
NavigationService.Navigate(new Uri("/SecondPage.xaml", UriKind.Relative));
ただしNavigationService
、App.xaml.cs では使用できません。
次の場合、別のページでアプリケーションを開始するにはどうすればよいfoo == true
ですか?