using System.Windows.Input; namespace HandyControl.Interactivity; /// /// 控件库使用的所有命令(为了统一,不使用wpf自带的命令) /// public static class ControlCommands { /// /// 搜索 /// public static RoutedCommand Search { get; } = new(nameof(Search), typeof(ControlCommands)); /// /// 清除 /// public static RoutedCommand Clear { get; } = new(nameof(Clear), typeof(ControlCommands)); /// /// 切换 /// public static RoutedCommand Switch { get; } = new(nameof(Switch), typeof(ControlCommands)); /// /// 右转 /// public static RoutedCommand RotateRight { get; } = new(nameof(RotateRight), typeof(ControlCommands)); /// /// 左转 /// public static RoutedCommand RotateLeft { get; } = new(nameof(RotateLeft), typeof(ControlCommands)); /// /// 小 /// public static RoutedCommand Reduce { get; } = new(nameof(Reduce), typeof(ControlCommands)); /// /// 大 /// public static RoutedCommand Enlarge { get; } = new(nameof(Enlarge), typeof(ControlCommands)); /// /// 还原 /// public static RoutedCommand Restore { get; } = new(nameof(Restore), typeof(ControlCommands)); /// /// 打开 /// public static RoutedCommand Open { get; } = new(nameof(Open), typeof(ControlCommands)); /// /// 保存 /// public static RoutedCommand Save { get; } = new(nameof(Save), typeof(ControlCommands)); /// /// 选中 /// public static RoutedCommand Selected { get; } = new(nameof(Selected), typeof(ControlCommands)); /// /// 关闭 /// public static RoutedCommand Close { get; } = new(nameof(Close), typeof(ControlCommands)); /// /// 取消 /// public static RoutedCommand Cancel { get; } = new(nameof(Cancel), typeof(ControlCommands)); /// /// 确定 /// public static RoutedCommand Confirm { get; } = new(nameof(Confirm), typeof(ControlCommands)); /// /// 是 /// public static RoutedCommand Yes { get; } = new(nameof(Yes), typeof(ControlCommands)); /// /// 否 /// public static RoutedCommand No { get; } = new(nameof(No), typeof(ControlCommands)); /// /// 关闭所有 /// public static RoutedCommand CloseAll { get; } = new(nameof(CloseAll), typeof(ControlCommands)); /// /// 关闭其他 /// public static RoutedCommand CloseOther { get; } = new(nameof(CloseOther), typeof(ControlCommands)); /// /// 上一个 /// public static RoutedCommand Prev { get; } = new(nameof(Prev), typeof(ControlCommands)); /// /// 下一个 /// public static RoutedCommand Next { get; } = new(nameof(Next), typeof(ControlCommands)); /// /// 跳转 /// public static RoutedCommand Jump { get; } = new(nameof(Jump), typeof(ControlCommands)); /// /// 上午 /// public static RoutedCommand Am { get; } = new(nameof(Am), typeof(ControlCommands)); /// /// 下午 /// public static RoutedCommand Pm { get; } = new(nameof(Pm), typeof(ControlCommands)); /// /// 确认 /// public static RoutedCommand Sure { get; } = new(nameof(Sure), typeof(ControlCommands)); /// /// 小时改变 /// public static RoutedCommand HourChange { get; } = new(nameof(HourChange), typeof(ControlCommands)); /// /// 分钟改变 /// public static RoutedCommand MinuteChange { get; } = new(nameof(MinuteChange), typeof(ControlCommands)); /// /// 秒改变 /// public static RoutedCommand SecondChange { get; } = new(nameof(SecondChange), typeof(ControlCommands)); /// /// 鼠标移动 /// public static RoutedCommand MouseMove { get; } = new(nameof(MouseMove), typeof(ControlCommands)); /// /// 打开链接 /// public static OpenLinkCommand OpenLink { get; } = new(); /// /// 关闭程序 /// public static ShutdownAppCommand ShutdownApp { get; } = new(); /// /// 前置主窗口 /// public static PushMainWindow2TopCommand PushMainWindow2Top { get; } = new(); /// /// 关闭窗口 /// public static CloseWindowCommand CloseWindow { get; } = new(); /// /// 开始截图 /// public static StartScreenshotCommand StartScreenshot { get; } = new(); /// /// 按照类别排序 /// public static RoutedCommand SortByCategory { get; } = new(nameof(SortByCategory), typeof(ControlCommands)); /// /// 按照名称排序 /// public static RoutedCommand SortByName { get; } = new(nameof(SortByName), typeof(ControlCommands)); /// /// 更多 /// public static RoutedCommand More { get; } = new(nameof(More), typeof(ControlCommands)); public static RoutedCommand Toggle { get; } = new(nameof(Toggle), typeof(ControlCommands)); }