using System.Windows.Input; namespace HandyControl.Interactivity { /// /// 控件库使用的所有命令(为了统一,不使用wpf自带的命令) /// public static class ControlCommands { /// /// 搜索 /// public static RoutedCommand Search { get; } = new RoutedCommand(nameof(Search), typeof(ControlCommands)); /// /// 清除 /// public static RoutedCommand Clear { get; } = new RoutedCommand(nameof(Clear), typeof(ControlCommands)); /// /// 切换 /// public static RoutedCommand Switch { get; } = new RoutedCommand(nameof(Switch), typeof(ControlCommands)); /// /// 右转 /// public static RoutedCommand RotateRight { get; } = new RoutedCommand(nameof(RotateRight), typeof(ControlCommands)); /// /// 左转 /// public static RoutedCommand RotateLeft { get; } = new RoutedCommand(nameof(RotateLeft), typeof(ControlCommands)); /// /// 小 /// public static RoutedCommand Reduce { get; } = new RoutedCommand(nameof(Reduce), typeof(ControlCommands)); /// /// 大 /// public static RoutedCommand Enlarge { get; } = new RoutedCommand(nameof(Enlarge), typeof(ControlCommands)); /// /// 还原 /// public static RoutedCommand Restore { get; } = new RoutedCommand(nameof(Restore), typeof(ControlCommands)); /// /// 打开 /// public static RoutedCommand Open { get; } = new RoutedCommand(nameof(Open), typeof(ControlCommands)); /// /// 保存 /// public static RoutedCommand Save { get; } = new RoutedCommand(nameof(Save), typeof(ControlCommands)); /// /// 选中 /// public static RoutedCommand Selected { get; } = new RoutedCommand(nameof(Selected), typeof(ControlCommands)); /// /// 关闭 /// public static RoutedCommand Close { get; } = new RoutedCommand(nameof(Close), typeof(ControlCommands)); /// /// 取消 /// public static RoutedCommand Cancel { get; } = new RoutedCommand(nameof(Cancel), typeof(ControlCommands)); /// /// 确定 /// public static RoutedCommand Confirm { get; } = new RoutedCommand(nameof(Confirm), typeof(ControlCommands)); /// /// 是 /// public static RoutedCommand Yes { get; } = new RoutedCommand(nameof(Yes), typeof(ControlCommands)); /// /// 否 /// public static RoutedCommand No { get; } = new RoutedCommand(nameof(No), typeof(ControlCommands)); /// /// 关闭所有 /// public static RoutedCommand CloseAll { get; } = new RoutedCommand(nameof(CloseAll), typeof(ControlCommands)); /// /// 关闭其他 /// public static RoutedCommand CloseOther { get; } = new RoutedCommand(nameof(CloseOther), typeof(ControlCommands)); /// /// 上一个 /// public static RoutedCommand Prev { get; } = new RoutedCommand(nameof(Prev), typeof(ControlCommands)); /// /// 下一个 /// public static RoutedCommand Next { get; } = new RoutedCommand(nameof(Next), typeof(ControlCommands)); /// /// 上午 /// public static RoutedCommand Am { get; } = new RoutedCommand(nameof(Am), typeof(ControlCommands)); /// /// 下午 /// public static RoutedCommand Pm { get; } = new RoutedCommand(nameof(Pm), typeof(ControlCommands)); /// /// 确认 /// public static RoutedCommand Sure { get; } = new RoutedCommand(nameof(Sure), typeof(ControlCommands)); /// /// 小时改变 /// public static RoutedCommand HourChange { get; } = new RoutedCommand(nameof(HourChange), typeof(ControlCommands)); /// /// 分钟改变 /// public static RoutedCommand MinuteChange { get; } = new RoutedCommand(nameof(MinuteChange), typeof(ControlCommands)); /// /// 秒改变 /// public static RoutedCommand SecondChange { get; } = new RoutedCommand(nameof(SecondChange), typeof(ControlCommands)); /// /// 鼠标移动 /// public static RoutedCommand MouseMove { get; } = new RoutedCommand(nameof(MouseMove), typeof(ControlCommands)); /// /// 打开链接 /// public static RoutedCommand OpenLink { get; } = new RoutedCommand(nameof(OpenLink), typeof(ControlCommands)); } }