GlobalCommands.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. using Prism.Commands;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace PDF_Master.Helper
  8. {
  9. /// <summary>
  10. /// 全局可用的命令 注册后,在任何界面可以当作静态资源绑定(需要留意 该命令没有办法区分页签,需要谨慎使用)
  11. /// </summary>
  12. public static class GlobalCommands
  13. {
  14. //一下命令已调整成其他方式实现
  15. public static CompositeCommand PrePageCommand = new CompositeCommand();
  16. public static CompositeCommand NextPageCommand = new CompositeCommand();
  17. public static CompositeCommand FirstPageCommand = new CompositeCommand();
  18. public static CompositeCommand LastPageCommand = new CompositeCommand();
  19. public static CompositeCommand PreViewCommand = new CompositeCommand();
  20. public static CompositeCommand NextViewCommand = new CompositeCommand();
  21. public static CompositeCommand UpCommand = new CompositeCommand();
  22. public static CompositeCommand DownCommand = new CompositeCommand();
  23. /// <summary>
  24. /// 单页模式 Ctrl+1
  25. /// </summary>
  26. public static CompositeCommand SinglePageCommand = new CompositeCommand();
  27. /// <summary>
  28. /// 双页模式 Ctrl+2
  29. /// </summary>
  30. public static CompositeCommand DoublePageCommand = new CompositeCommand();
  31. /// <summary>
  32. /// 全屏 F11
  33. /// </summary>
  34. public static CompositeCommand FullWindowCommand = new CompositeCommand();
  35. /// <summary>
  36. /// 书签快捷键 ctrl+B
  37. /// </summary>
  38. public static CompositeCommand BookMarkCommand = new CompositeCommand();
  39. /// <summary>
  40. /// 放大快捷键 ctrl +
  41. /// </summary>
  42. public static CompositeCommand ZoomInCommand = new CompositeCommand();
  43. /// <summary>
  44. /// 缩小快捷键 ctrl -
  45. /// </summary>
  46. public static CompositeCommand ZoomOutPageCommand = new CompositeCommand();
  47. /// <summary>
  48. /// 回到实际大小 ctrl+0
  49. /// </summary>
  50. public static CompositeCommand RealSizeCommand = new CompositeCommand();
  51. }
  52. }