WPF finishing articles page

Original: WPF finishing articles page

Foreword  

Some time ago to see the elephant UML Although this book immediately see the essence of the piece finally temporarily suspended because the book is so nice to me now being a bit ahead is still very difficult to understand a lot of things but this book I will be both after months continue to look 

Due to the entry of new companies so it is necessary to WPF and design patterns to achieve a certain level of design patterns have been sorted out post-9 model will continue to follow up on the UML model is not intended to conflict with about 14 days to fully intend to organize WPF and MVVM to embrace new working environment 

Design patterns and UML will continue to organize WPF is the only way in the back just a bit in order to adjust

Also very fortunate to see a new teacher Zhao Qingming on 51cto of course it feels good to page this one I have not been involved

navigation

The computer's wanted

Task Scheduler


  
  
  1. private void Button_Click(object sender, RoutedEventArgs e)
  2. { //后退跳转
  3. if (NavigationService.CanGoBack)
  4. {
  5. NavigationService.GoBack();
  6. }
  7. }
  8. private void Button_Click_1(object sender, RoutedEventArgs e)
  9. {
  10. //前进跳转
  11. if (NavigationService.CanGoForward)
  12. {
  13. NavigationService.GoForward();
  14. }
  15. }
  16. private void Button_Click_2(object sender, RoutedEventArgs e)
  17. {
  18. //跳转到page2
  19. NavigationService.Navigate( new Uri( "Page2.xaml", UriKind.RelativeOrAbsolute));
  20. }

 

Baidu link

Use the Hyperlink control

        <TextBlock Grid.Column="3" HorizontalAlignment="Left" Margin="2,56,0,0" Grid.Row="3" TextWrapping="Wrap"  VerticalAlignment="Top" Height="44" Width="75"><Run Text="跳转到"/><Hyperlink NavigateUri="http://www.baidu.com"><Run Text="百度"/></Hyperlink></TextBlock>
 
 

 

Main Form screen is divided into two parts is a button combination is a frame

frame to specify the display page page and hide or display the toolbar

 <Frame x:Name="frame" Content="Frame" Source="/WpfApplication17;component/Page1.xaml" NavigationUIVisibility="Hidden" Grid.Column="1"/>
 
 

Code link

https://download.csdn.net/download/q465162770/12003057

 

Guess you like

Origin www.cnblogs.com/lonelyxmas/p/12075429.html