■ UriMapper 엘리먼트를 사용하는 방법을 보여준다.
▶ 예제 코드 (XAML)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<navigation:Frame x:Name="_pFrame" xmlns:mapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation" Source="HomePage"> <navigation:Frame.UriMapper> <mapper:UriMapper> <mapper:UriMapping Uri="HomePage" MappedUri="/SubPage/HomePage.xaml" /> <mapper:UriMapping Uri="IntroPage" MappedUri="/SubPage/IntroPage.xaml" /> <mapper:UriMapping Uri="BoardPage" MappedUri="/SubPage/BoardPage.xaml" /> </mapper:UriMapper> </navigation:Frame.UriMapper> </navigation:Frame> |