다음을 통해 공유


방법: 페이지로 이동

업데이트: 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());

참고

URI(Uniform Resource Identifier)는 상대적이거나 절대적일 수 있습니다. 자세한 내용은 Windows Presentation Foundation의 Pack URI를 참조하십시오.

참고 항목

참조

Frame

Page

NavigationService