50 references to MediaState
PresentationFramework (50)
src\Framework\System\Windows\Controls\AVElementHelper.cs (36)
74
_mediaState = new SettableState<
MediaState
>(
MediaState
.Close);
159
MediaState
unloadedBehavior
175
MediaState
loadedBehavior
194
if (_currentState ==
MediaState
.Close)
275
MediaState
mediaState
282
if (_loadedBehavior !=
MediaState
.Manual && _unloadedBehavior !=
MediaState
.Manual)
379
MediaState
thisStateRequest = _mediaState._value;
394
thisStateRequest =
MediaState
.Manual;
402
else if (_loadedBehavior !=
MediaState
.Manual)
411
if (_loadedBehavior !=
MediaState
.Manual)
413
thisStateRequest =
MediaState
.Play;
427
if (_unloadedBehavior !=
MediaState
.Manual)
439
Invariant.Assert(_unloadedBehavior ==
MediaState
.Manual);
443
thisStateRequest =
MediaState
.Manual;
463
if ( thisStateRequest !=
MediaState
.Close
464
&& thisStateRequest !=
MediaState
.Manual)
486
if (_currentState ==
MediaState
.Close || _source._isSet)
513
if (_currentState ==
MediaState
.Close || _clock._isSet)
537
else if (thisStateRequest ==
MediaState
.Close)
539
if (_currentState !=
MediaState
.Close)
549
_currentState =
MediaState
.Close;
557
if (_currentState !=
MediaState
.Close || openedMedia)
610
if (thisStateRequest ==
MediaState
.Play && _source._isSet)
643
case
MediaState
.Play:
647
case
MediaState
.Pause:
651
case
MediaState
.Stop:
655
case
MediaState
.Manual:
862
private
MediaState
_unloadedBehavior =
MediaState
.Close;
863
private
MediaState
_loadedBehavior =
MediaState
.Play;
865
private
MediaState
_currentState =
MediaState
.Close;
874
SettableState<
MediaState
> _mediaState;
src\Framework\System\Windows\Controls\MediaElement.cs (14)
196
typeof(
MediaState
),
199
MediaState
.Close,
209
typeof(
MediaState
),
212
MediaState
.Play,
252
_helper.SetState(
MediaState
.Play);
263
_helper.SetState(
MediaState
.Pause);
274
_helper.SetState(
MediaState
.Stop);
285
_helper.SetState(
MediaState
.Close);
392
public
MediaState
UnloadedBehavior
396
return (
MediaState
)GetValue(UnloadedBehaviorProperty);
413
public
MediaState
LoadedBehavior
417
return (
MediaState
)GetValue(LoadedBehaviorProperty);
882
target._helper.SetUnloadedBehavior((
MediaState
)e.NewValue);
902
target._helper.SetLoadedBehavior((
MediaState
)e.NewValue);