FullScreenWindow.xaml.cs 786 B

12345678910111213141516171819202122232425262728293031
  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_Master.Views.Dialog
  15. {
  16. /// <summary>
  17. /// FullScreenWindow.xaml 的交互逻辑
  18. /// </summary>
  19. public partial class FullScreenWindow : UserControl
  20. {
  21. public FullScreenWindow()
  22. {
  23. InitializeComponent();
  24. //UserControl keybinding失效的处理方法,必须要以下两句。
  25. Focusable = true;
  26. this.Focus();
  27. }
  28. }
  29. }