PropertiesDialog.xaml.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Shapes;
  14. namespace PDF_Office.Views.Dialog
  15. {
  16. /// <summary>
  17. /// PropertiesDialog.xaml 的交互逻辑
  18. /// </summary>
  19. public partial class PropertiesDialog : Window
  20. {
  21. public PropertiesDialog()
  22. {
  23. InitializeComponent();
  24. }
  25. private void BtnMiniSize_Click(object sender, RoutedEventArgs e)
  26. {
  27. System.Windows.SystemCommands.MinimizeWindow(this);
  28. }
  29. private void BtnClose_Click(object sender, RoutedEventArgs e)
  30. {
  31. System.Windows.SystemCommands.CloseWindow(this);
  32. }
  33. private void BtnReStore_Click(object sender, RoutedEventArgs e)
  34. {
  35. if (this.WindowState == WindowState.Maximized)
  36. {
  37. System.Windows.SystemCommands.RestoreWindow(this);
  38. }
  39. else
  40. {
  41. System.Windows.SystemCommands.MaximizeWindow(this);
  42. }
  43. }
  44. }
  45. }