方法 : ページに移動する

更新 : 2007 年 11 月

この例では、NavigationWindow を使用してページに移動するいくつかの方法を示します。

使用例

NavigationWindow では、次のいずれかを使用して、ページに移動することができます。

// Navigate to URI using the Source property
this.Source = new Uri("HomePage.xaml", UriKind.Relative);

// Navigate to URI using the Navigate method
this.Navigate(new Uri("HomePage.xaml", UriKind.Relative));

// Navigate to object using the Navigate method
this.Navigate(new HomePage());
ms743613.alert_note(ja-jp,VS.90).gifメモ :

統一リソース識別子 (URI) には、相対 URI も絶対 URI もどちらも指定できます。詳細については、「Windows Presentation Foundation におけるパッケージの URI」を参照してください。

参照

参照

Frame

Page

NavigationService