using Prism.Commands; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PDF_Master.Helper { /// /// 全局可用的命令 注册后,在任何界面可以当作静态资源绑定(需要留意 该命令没有办法区分页签,需要谨慎使用) /// public static class GlobalCommands { //一下命令已调整成其他方式实现 public static CompositeCommand PrePageCommand = new CompositeCommand(); public static CompositeCommand NextPageCommand = new CompositeCommand(); public static CompositeCommand FirstPageCommand = new CompositeCommand(); public static CompositeCommand LastPageCommand = new CompositeCommand(); public static CompositeCommand PreViewCommand = new CompositeCommand(); public static CompositeCommand NextViewCommand = new CompositeCommand(); public static CompositeCommand UpCommand = new CompositeCommand(); public static CompositeCommand DownCommand = new CompositeCommand(); /// /// 单页模式 Ctrl+1 /// public static CompositeCommand SinglePageCommand = new CompositeCommand(); /// /// 双页模式 Ctrl+2 /// public static CompositeCommand DoublePageCommand = new CompositeCommand(); /// /// 全屏 F11 /// public static CompositeCommand FullWindowCommand = new CompositeCommand(); /// /// 书签快捷键 ctrl+B /// public static CompositeCommand BookMarkCommand = new CompositeCommand(); /// /// 放大快捷键 ctrl + /// public static CompositeCommand ZoomInCommand = new CompositeCommand(); /// /// 缩小快捷键 ctrl - /// public static CompositeCommand ZoomOutPageCommand = new CompositeCommand(); /// /// 回到实际大小 ctrl+0 /// public static CompositeCommand RealSizeCommand = new CompositeCommand(); } }