WPF一(页面跳转)

前台转:

<TextBlock FontSize="24" TextWrapping="Wrap" Margin="0,0,0,-19.998">
            <Hyperlink x:Name="LnkPre" NavigateUri="Page2.xaml" Foreground="Black">
                Enter Page2
             </Hyperlink>
</TextBlock>

后台转:

 NavigationService.GetNavigationService(this).Navigate(new Uri("Page2.xaml", UriKind.Relative));

 NavigationService.GetNavigationService(this).GoForward();向后转
 NavigationService.GetNavigationService(this).GoBack();  向前转
          

原文地址:https://www.cnblogs.com/single/p/1155733.html