102 references to CommandId
PresentationCore (102)
Core\CSharp\System\Windows\Input\Command\MediaCommands.cs (102)
47
get { return _EnsureCommand(
CommandId
.Play); }
55
get { return _EnsureCommand(
CommandId
.Pause); }
63
get { return _EnsureCommand(
CommandId
.Stop); }
71
get { return _EnsureCommand(
CommandId
.Record); }
79
get { return _EnsureCommand(
CommandId
.NextTrack); }
87
get { return _EnsureCommand(
CommandId
.PreviousTrack); }
95
get { return _EnsureCommand(
CommandId
.FastForward); }
103
get { return _EnsureCommand(
CommandId
.Rewind); }
111
get { return _EnsureCommand(
CommandId
.ChannelUp); }
119
get { return _EnsureCommand(
CommandId
.ChannelDown); }
127
get {return _EnsureCommand(
CommandId
.TogglePlayPause);}
135
get {return _EnsureCommand(
CommandId
.Select);}
143
get { return _EnsureCommand(
CommandId
.IncreaseVolume); }
151
get { return _EnsureCommand(
CommandId
.DecreaseVolume); }
158
get { return _EnsureCommand(
CommandId
.MuteVolume); }
165
get { return _EnsureCommand(
CommandId
.IncreaseTreble); }
172
get { return _EnsureCommand(
CommandId
.DecreaseTreble); }
179
get { return _EnsureCommand(
CommandId
.IncreaseBass); }
186
get { return _EnsureCommand(
CommandId
.DecreaseBass); }
193
get { return _EnsureCommand(
CommandId
.BoostBass); }
200
get { return _EnsureCommand(
CommandId
.IncreaseMicrophoneVolume); }
208
get { return _EnsureCommand(
CommandId
.DecreaseMicrophoneVolume); }
215
get { return _EnsureCommand(
CommandId
.MuteMicrophoneVolume); }
222
get { return _EnsureCommand(
CommandId
.ToggleMicrophoneOnOff); }
232
private static string GetPropertyName(
CommandId
commandId)
238
case
CommandId
.Play : propertyName = "Play"; break;
239
case
CommandId
.Pause: propertyName = "Pause"; break;
240
case
CommandId
.Stop : propertyName = "Stop"; break;
241
case
CommandId
.Record: propertyName = "Record"; break;
242
case
CommandId
.NextTrack: propertyName = "NextTrack"; break;
243
case
CommandId
.PreviousTrack: propertyName = "PreviousTrack"; break;
244
case
CommandId
.FastForward: propertyName = "FastForward"; break;
245
case
CommandId
.Rewind: propertyName = "Rewind"; break;
246
case
CommandId
.ChannelUp: propertyName = "ChannelUp"; break;
247
case
CommandId
.ChannelDown: propertyName = "ChannelDown"; break;
248
case
CommandId
.TogglePlayPause: propertyName = "TogglePlayPause"; break;
249
case
CommandId
.IncreaseVolume: propertyName = "IncreaseVolume"; break;
250
case
CommandId
.DecreaseVolume: propertyName = "DecreaseVolume"; break;
251
case
CommandId
.MuteVolume: propertyName = "MuteVolume"; break;
252
case
CommandId
.IncreaseTreble: propertyName = "IncreaseTreble"; break;
253
case
CommandId
.DecreaseTreble: propertyName = "DecreaseTreble"; break;
254
case
CommandId
.IncreaseBass: propertyName = "IncreaseBass"; break;
255
case
CommandId
.DecreaseBass: propertyName = "DecreaseBass"; break;
256
case
CommandId
.BoostBass: propertyName = "BoostBass"; break;
257
case
CommandId
.IncreaseMicrophoneVolume: propertyName = "IncreaseMicrophoneVolume"; break;
258
case
CommandId
.DecreaseMicrophoneVolume: propertyName = "DecreaseMicrophoneVolume"; break;
259
case
CommandId
.MuteMicrophoneVolume: propertyName = "MuteMicrophoneVolume"; break;
260
case
CommandId
.ToggleMicrophoneOnOff: propertyName = "ToggleMicrophoneOnOff"; break;
261
case
CommandId
.Select:propertyName = "Select";break;
270
switch ((
CommandId
)commandId)
272
case
CommandId
.Play: uiText = SR.Get(SRID.MediaPlayText); break;
273
case
CommandId
.Pause: uiText = SR.Get(SRID.MediaPauseText); break;
274
case
CommandId
.Stop: uiText = SR.Get(SRID.MediaStopText); break;
275
case
CommandId
.Record: uiText = SR.Get(SRID.MediaRecordText); break;
276
case
CommandId
.NextTrack: uiText = SR.Get(SRID.MediaNextTrackText); break;
277
case
CommandId
.PreviousTrack: uiText = SR.Get(SRID.MediaPreviousTrackText); break;
278
case
CommandId
.FastForward: uiText = SR.Get(SRID.MediaFastForwardText); break;
279
case
CommandId
.Rewind: uiText = SR.Get(SRID.MediaRewindText); break;
280
case
CommandId
.ChannelUp: uiText = SR.Get(SRID.MediaChannelUpText); break;
281
case
CommandId
.ChannelDown: uiText = SR.Get(SRID.MediaChannelDownText); break;
282
case
CommandId
.TogglePlayPause: uiText = SR.Get(SRID.MediaTogglePlayPauseText); break;
283
case
CommandId
.IncreaseVolume: uiText = SR.Get(SRID.MediaIncreaseVolumeText); break;
284
case
CommandId
.DecreaseVolume: uiText = SR.Get(SRID.MediaDecreaseVolumeText); break;
285
case
CommandId
.MuteVolume: uiText = SR.Get(SRID.MediaMuteVolumeText); break;
286
case
CommandId
.IncreaseTreble: uiText = SR.Get(SRID.MediaIncreaseTrebleText); break;
287
case
CommandId
.DecreaseTreble: uiText = SR.Get(SRID.MediaDecreaseTrebleText); break;
288
case
CommandId
.IncreaseBass: uiText = SR.Get(SRID.MediaIncreaseBassText); break;
289
case
CommandId
.DecreaseBass: uiText = SR.Get(SRID.MediaDecreaseBassText); break;
290
case
CommandId
.BoostBass: uiText = SR.Get(SRID.MediaBoostBassText); break;
291
case
CommandId
.IncreaseMicrophoneVolume: uiText = SR.Get(SRID.MediaIncreaseMicrophoneVolumeText); break;
292
case
CommandId
.DecreaseMicrophoneVolume: uiText = SR.Get(SRID.MediaDecreaseMicrophoneVolumeText); break;
293
case
CommandId
.MuteMicrophoneVolume: uiText = SR.Get(SRID.MediaMuteMicrophoneVolumeText); break;
294
case
CommandId
.ToggleMicrophoneOnOff: uiText = SR.Get(SRID.MediaToggleMicrophoneOnOffText); break;
295
case
CommandId
.Select:uiText = SR.Get(SRID.MediaSelectText);break;
305
switch ((
CommandId
)commandId)
307
case
CommandId
.Play:
313
case
CommandId
.Pause:
319
case
CommandId
.Stop:
325
case
CommandId
.Record:
331
case
CommandId
.NextTrack:
337
case
CommandId
.PreviousTrack:
343
case
CommandId
.FastForward:
349
case
CommandId
.Rewind:
355
case
CommandId
.ChannelUp:
361
case
CommandId
.ChannelDown:
367
case
CommandId
.TogglePlayPause:
373
case
CommandId
.IncreaseVolume:
379
case
CommandId
.DecreaseVolume:
385
case
CommandId
.MuteVolume:
391
case
CommandId
.IncreaseTreble:
397
case
CommandId
.DecreaseTreble:
403
case
CommandId
.IncreaseBass:
409
case
CommandId
.DecreaseBass:
415
case
CommandId
.BoostBass:
421
case
CommandId
.IncreaseMicrophoneVolume:
427
case
CommandId
.DecreaseMicrophoneVolume:
433
case
CommandId
.MuteMicrophoneVolume:
439
case
CommandId
.ToggleMicrophoneOnOff:
445
case
CommandId
.Select:
455
private static RoutedUICommand _EnsureCommand(
CommandId
idCommand)
457
if (idCommand >= 0 && idCommand <
CommandId
.Last)
513
private static RoutedUICommand[] _internalCommands = new RoutedUICommand[(int)
CommandId
.Last];