102 references to CommandId
PresentationCore (102)
System\Windows\Input\Command\MediaCommands.cs (102)
42
get { return _EnsureCommand(
CommandId
.Play); }
50
get { return _EnsureCommand(
CommandId
.Pause); }
58
get { return _EnsureCommand(
CommandId
.Stop); }
66
get { return _EnsureCommand(
CommandId
.Record); }
74
get { return _EnsureCommand(
CommandId
.NextTrack); }
82
get { return _EnsureCommand(
CommandId
.PreviousTrack); }
90
get { return _EnsureCommand(
CommandId
.FastForward); }
98
get { return _EnsureCommand(
CommandId
.Rewind); }
106
get { return _EnsureCommand(
CommandId
.ChannelUp); }
114
get { return _EnsureCommand(
CommandId
.ChannelDown); }
122
get {return _EnsureCommand(
CommandId
.TogglePlayPause);}
130
get {return _EnsureCommand(
CommandId
.Select);}
138
get { return _EnsureCommand(
CommandId
.IncreaseVolume); }
146
get { return _EnsureCommand(
CommandId
.DecreaseVolume); }
153
get { return _EnsureCommand(
CommandId
.MuteVolume); }
160
get { return _EnsureCommand(
CommandId
.IncreaseTreble); }
167
get { return _EnsureCommand(
CommandId
.DecreaseTreble); }
174
get { return _EnsureCommand(
CommandId
.IncreaseBass); }
181
get { return _EnsureCommand(
CommandId
.DecreaseBass); }
188
get { return _EnsureCommand(
CommandId
.BoostBass); }
195
get { return _EnsureCommand(
CommandId
.IncreaseMicrophoneVolume); }
203
get { return _EnsureCommand(
CommandId
.DecreaseMicrophoneVolume); }
210
get { return _EnsureCommand(
CommandId
.MuteMicrophoneVolume); }
217
get { return _EnsureCommand(
CommandId
.ToggleMicrophoneOnOff); }
227
private static string GetPropertyName(
CommandId
commandId)
233
case
CommandId
.Play : propertyName = "Play"; break;
234
case
CommandId
.Pause: propertyName = "Pause"; break;
235
case
CommandId
.Stop : propertyName = "Stop"; break;
236
case
CommandId
.Record: propertyName = "Record"; break;
237
case
CommandId
.NextTrack: propertyName = "NextTrack"; break;
238
case
CommandId
.PreviousTrack: propertyName = "PreviousTrack"; break;
239
case
CommandId
.FastForward: propertyName = "FastForward"; break;
240
case
CommandId
.Rewind: propertyName = "Rewind"; break;
241
case
CommandId
.ChannelUp: propertyName = "ChannelUp"; break;
242
case
CommandId
.ChannelDown: propertyName = "ChannelDown"; break;
243
case
CommandId
.TogglePlayPause: propertyName = "TogglePlayPause"; break;
244
case
CommandId
.IncreaseVolume: propertyName = "IncreaseVolume"; break;
245
case
CommandId
.DecreaseVolume: propertyName = "DecreaseVolume"; break;
246
case
CommandId
.MuteVolume: propertyName = "MuteVolume"; break;
247
case
CommandId
.IncreaseTreble: propertyName = "IncreaseTreble"; break;
248
case
CommandId
.DecreaseTreble: propertyName = "DecreaseTreble"; break;
249
case
CommandId
.IncreaseBass: propertyName = "IncreaseBass"; break;
250
case
CommandId
.DecreaseBass: propertyName = "DecreaseBass"; break;
251
case
CommandId
.BoostBass: propertyName = "BoostBass"; break;
252
case
CommandId
.IncreaseMicrophoneVolume: propertyName = "IncreaseMicrophoneVolume"; break;
253
case
CommandId
.DecreaseMicrophoneVolume: propertyName = "DecreaseMicrophoneVolume"; break;
254
case
CommandId
.MuteMicrophoneVolume: propertyName = "MuteMicrophoneVolume"; break;
255
case
CommandId
.ToggleMicrophoneOnOff: propertyName = "ToggleMicrophoneOnOff"; break;
256
case
CommandId
.Select:propertyName = "Select";break;
265
switch ((
CommandId
)commandId)
267
case
CommandId
.Play: uiText = SR.MediaPlayText; break;
268
case
CommandId
.Pause: uiText = SR.MediaPauseText; break;
269
case
CommandId
.Stop: uiText = SR.MediaStopText; break;
270
case
CommandId
.Record: uiText = SR.MediaRecordText; break;
271
case
CommandId
.NextTrack: uiText = SR.MediaNextTrackText; break;
272
case
CommandId
.PreviousTrack: uiText = SR.MediaPreviousTrackText; break;
273
case
CommandId
.FastForward: uiText = SR.MediaFastForwardText; break;
274
case
CommandId
.Rewind: uiText = SR.MediaRewindText; break;
275
case
CommandId
.ChannelUp: uiText = SR.MediaChannelUpText; break;
276
case
CommandId
.ChannelDown: uiText = SR.MediaChannelDownText; break;
277
case
CommandId
.TogglePlayPause: uiText = SR.MediaTogglePlayPauseText; break;
278
case
CommandId
.IncreaseVolume: uiText = SR.MediaIncreaseVolumeText; break;
279
case
CommandId
.DecreaseVolume: uiText = SR.MediaDecreaseVolumeText; break;
280
case
CommandId
.MuteVolume: uiText = SR.MediaMuteVolumeText; break;
281
case
CommandId
.IncreaseTreble: uiText = SR.MediaIncreaseTrebleText; break;
282
case
CommandId
.DecreaseTreble: uiText = SR.MediaDecreaseTrebleText; break;
283
case
CommandId
.IncreaseBass: uiText = SR.MediaIncreaseBassText; break;
284
case
CommandId
.DecreaseBass: uiText = SR.MediaDecreaseBassText; break;
285
case
CommandId
.BoostBass: uiText = SR.MediaBoostBassText; break;
286
case
CommandId
.IncreaseMicrophoneVolume: uiText = SR.MediaIncreaseMicrophoneVolumeText; break;
287
case
CommandId
.DecreaseMicrophoneVolume: uiText = SR.MediaDecreaseMicrophoneVolumeText; break;
288
case
CommandId
.MuteMicrophoneVolume: uiText = SR.MediaMuteMicrophoneVolumeText; break;
289
case
CommandId
.ToggleMicrophoneOnOff: uiText = SR.MediaToggleMicrophoneOnOffText; break;
290
case
CommandId
.Select:uiText = SR.MediaSelectText;break;
300
switch ((
CommandId
)commandId)
302
case
CommandId
.Play:
308
case
CommandId
.Pause:
314
case
CommandId
.Stop:
320
case
CommandId
.Record:
326
case
CommandId
.NextTrack:
332
case
CommandId
.PreviousTrack:
338
case
CommandId
.FastForward:
344
case
CommandId
.Rewind:
350
case
CommandId
.ChannelUp:
356
case
CommandId
.ChannelDown:
362
case
CommandId
.TogglePlayPause:
368
case
CommandId
.IncreaseVolume:
374
case
CommandId
.DecreaseVolume:
380
case
CommandId
.MuteVolume:
386
case
CommandId
.IncreaseTreble:
392
case
CommandId
.DecreaseTreble:
398
case
CommandId
.IncreaseBass:
404
case
CommandId
.DecreaseBass:
410
case
CommandId
.BoostBass:
416
case
CommandId
.IncreaseMicrophoneVolume:
422
case
CommandId
.DecreaseMicrophoneVolume:
428
case
CommandId
.MuteMicrophoneVolume:
434
case
CommandId
.ToggleMicrophoneOnOff:
440
case
CommandId
.Select:
450
private static RoutedUICommand _EnsureCommand(
CommandId
idCommand)
452
if (idCommand >= 0 && idCommand <
CommandId
.Last)
508
private static RoutedUICommand[] _internalCommands = new RoutedUICommand[(int)
CommandId
.Last];