-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathControlCommands.cs
More file actions
193 lines (154 loc) · 5.78 KB
/
ControlCommands.cs
File metadata and controls
193 lines (154 loc) · 5.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
using System.Windows.Input;
namespace HandyControl.Interactivity;
/// <summary>
/// 控件库使用的所有命令(为了统一,不使用wpf自带的命令)
/// </summary>
public static class ControlCommands
{
/// <summary>
/// 搜索
/// </summary>
public static RoutedCommand Search { get; } = new(nameof(Search), typeof(ControlCommands));
/// <summary>
/// 清除
/// </summary>
public static RoutedCommand Clear { get; } = new(nameof(Clear), typeof(ControlCommands));
/// <summary>
/// 切换
/// </summary>
public static RoutedCommand Switch { get; } = new(nameof(Switch), typeof(ControlCommands));
/// <summary>
/// 右转
/// </summary>
public static RoutedCommand RotateRight { get; } = new(nameof(RotateRight), typeof(ControlCommands));
/// <summary>
/// 左转
/// </summary>
public static RoutedCommand RotateLeft { get; } = new(nameof(RotateLeft), typeof(ControlCommands));
/// <summary>
/// 小
/// </summary>
public static RoutedCommand Reduce { get; } = new(nameof(Reduce), typeof(ControlCommands));
/// <summary>
/// 大
/// </summary>
public static RoutedCommand Enlarge { get; } = new(nameof(Enlarge), typeof(ControlCommands));
/// <summary>
/// 还原
/// </summary>
public static RoutedCommand Restore { get; } = new(nameof(Restore), typeof(ControlCommands));
/// <summary>
/// 打开
/// </summary>
public static RoutedCommand Open { get; } = new(nameof(Open), typeof(ControlCommands));
/// <summary>
/// 保存
/// </summary>
public static RoutedCommand Save { get; } = new(nameof(Save), typeof(ControlCommands));
/// <summary>
/// 选中
/// </summary>
public static RoutedCommand Selected { get; } = new(nameof(Selected), typeof(ControlCommands));
/// <summary>
/// 关闭
/// </summary>
public static RoutedCommand Close { get; } = new(nameof(Close), typeof(ControlCommands));
/// <summary>
/// 取消
/// </summary>
public static RoutedCommand Cancel { get; } = new(nameof(Cancel), typeof(ControlCommands));
/// <summary>
/// 确定
/// </summary>
public static RoutedCommand Confirm { get; } = new(nameof(Confirm), typeof(ControlCommands));
/// <summary>
/// 是
/// </summary>
public static RoutedCommand Yes { get; } = new(nameof(Yes), typeof(ControlCommands));
/// <summary>
/// 否
/// </summary>
public static RoutedCommand No { get; } = new(nameof(No), typeof(ControlCommands));
/// <summary>
/// 关闭所有
/// </summary>
public static RoutedCommand CloseAll { get; } = new(nameof(CloseAll), typeof(ControlCommands));
/// <summary>
/// 关闭其他
/// </summary>
public static RoutedCommand CloseOther { get; } = new(nameof(CloseOther), typeof(ControlCommands));
/// <summary>
/// 上一个
/// </summary>
public static RoutedCommand Prev { get; } = new(nameof(Prev), typeof(ControlCommands));
/// <summary>
/// 下一个
/// </summary>
public static RoutedCommand Next { get; } = new(nameof(Next), typeof(ControlCommands));
/// <summary>
/// 跳转
/// </summary>
public static RoutedCommand Jump { get; } = new(nameof(Jump), typeof(ControlCommands));
/// <summary>
/// 上午
/// </summary>
public static RoutedCommand Am { get; } = new(nameof(Am), typeof(ControlCommands));
/// <summary>
/// 下午
/// </summary>
public static RoutedCommand Pm { get; } = new(nameof(Pm), typeof(ControlCommands));
/// <summary>
/// 确认
/// </summary>
public static RoutedCommand Sure { get; } = new(nameof(Sure), typeof(ControlCommands));
/// <summary>
/// 小时改变
/// </summary>
public static RoutedCommand HourChange { get; } = new(nameof(HourChange), typeof(ControlCommands));
/// <summary>
/// 分钟改变
/// </summary>
public static RoutedCommand MinuteChange { get; } = new(nameof(MinuteChange), typeof(ControlCommands));
/// <summary>
/// 秒改变
/// </summary>
public static RoutedCommand SecondChange { get; } = new(nameof(SecondChange), typeof(ControlCommands));
/// <summary>
/// 鼠标移动
/// </summary>
public static RoutedCommand MouseMove { get; } = new(nameof(MouseMove), typeof(ControlCommands));
/// <summary>
/// 打开链接
/// </summary>
public static OpenLinkCommand OpenLink { get; } = new();
/// <summary>
/// 关闭程序
/// </summary>
public static ShutdownAppCommand ShutdownApp { get; } = new();
/// <summary>
/// 前置主窗口
/// </summary>
public static PushMainWindow2TopCommand PushMainWindow2Top { get; } = new();
/// <summary>
/// 关闭窗口
/// </summary>
public static CloseWindowCommand CloseWindow { get; } = new();
/// <summary>
/// 开始截图
/// </summary>
public static StartScreenshotCommand StartScreenshot { get; } = new();
/// <summary>
/// 按照类别排序
/// </summary>
public static RoutedCommand SortByCategory { get; } = new(nameof(SortByCategory), typeof(ControlCommands));
/// <summary>
/// 按照名称排序
/// </summary>
public static RoutedCommand SortByName { get; } = new(nameof(SortByName), typeof(ControlCommands));
/// <summary>
/// 更多
/// </summary>
public static RoutedCommand More { get; } = new(nameof(More), typeof(ControlCommands));
public static RoutedCommand Toggle { get; } = new(nameof(Toggle), typeof(ControlCommands));
public static RoutedCommand Focus { get; } = new(nameof(Focus), typeof(ControlCommands));
}