MainWindow.xaml.cs 720 B

123456789101112131415161718192021222324252627282930
  1. using MvvmScaffoldFrame48.ViewModel.ViewModel;
  2. using System;
  3. using System.Windows;
  4. namespace MvvmScaffoldFrame48
  5. {
  6. /// <summary>
  7. /// MainWindow.xaml 的交互逻辑
  8. /// </summary>
  9. public partial class MainWindow : Window
  10. {
  11. public MainWindow()
  12. {
  13. InitializeComponent();
  14. }
  15. private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
  16. {
  17. Environment.Exit(0);
  18. }
  19. private void DeepObjectDetectBtn_Click(object sender, RoutedEventArgs e)
  20. {
  21. Uri ShowUri = new Uri("WPFPage\\DeepObjectDetectPage.xaml", UriKind.Relative);
  22. ShowFrame.Navigate(ShowUri);
  23. }
  24. }
  25. }