50 references to MediaState
PresentationFramework (50)
System\Windows\Controls\AVElementHelper.cs (36)
69
_mediaState = new SettableState<
MediaState
>(
MediaState
.Close);
154
MediaState
unloadedBehavior
170
MediaState
loadedBehavior
189
if (_currentState ==
MediaState
.Close)
270
MediaState
mediaState
277
if (_loadedBehavior !=
MediaState
.Manual && _unloadedBehavior !=
MediaState
.Manual)
374
MediaState
thisStateRequest = _mediaState._value;
389
thisStateRequest =
MediaState
.Manual;
397
else if (_loadedBehavior !=
MediaState
.Manual)
406
if (_loadedBehavior !=
MediaState
.Manual)
408
thisStateRequest =
MediaState
.Play;
422
if (_unloadedBehavior !=
MediaState
.Manual)
434
Invariant.Assert(_unloadedBehavior ==
MediaState
.Manual);
438
thisStateRequest =
MediaState
.Manual;
458
if ( thisStateRequest !=
MediaState
.Close
459
&& thisStateRequest !=
MediaState
.Manual)
481
if (_currentState ==
MediaState
.Close || _source._isSet)
508
if (_currentState ==
MediaState
.Close || _clock._isSet)
532
else if (thisStateRequest ==
MediaState
.Close)
534
if (_currentState !=
MediaState
.Close)
544
_currentState =
MediaState
.Close;
552
if (_currentState !=
MediaState
.Close || openedMedia)
605
if (thisStateRequest ==
MediaState
.Play && _source._isSet)
638
case
MediaState
.Play:
642
case
MediaState
.Pause:
646
case
MediaState
.Stop:
650
case
MediaState
.Manual:
850
private
MediaState
_unloadedBehavior =
MediaState
.Close;
851
private
MediaState
_loadedBehavior =
MediaState
.Play;
853
private
MediaState
_currentState =
MediaState
.Close;
862
SettableState<
MediaState
> _mediaState;
System\Windows\Controls\MediaElement.cs (14)
191
typeof(
MediaState
),
194
MediaState
.Close,
204
typeof(
MediaState
),
207
MediaState
.Play,
247
_helper.SetState(
MediaState
.Play);
258
_helper.SetState(
MediaState
.Pause);
269
_helper.SetState(
MediaState
.Stop);
280
_helper.SetState(
MediaState
.Close);
387
public
MediaState
UnloadedBehavior
391
return (
MediaState
)GetValue(UnloadedBehaviorProperty);
408
public
MediaState
LoadedBehavior
412
return (
MediaState
)GetValue(LoadedBehaviorProperty);
877
target._helper.SetUnloadedBehavior((
MediaState
)e.NewValue);
897
target._helper.SetLoadedBehavior((
MediaState
)e.NewValue);