50 references to MediaState
PresentationFramework (50)
System\Windows\Controls\AVElementHelper.cs (36)
62
_mediaState = new SettableState<
MediaState
>(
MediaState
.Close);
147
MediaState
unloadedBehavior
163
MediaState
loadedBehavior
182
if (_currentState ==
MediaState
.Close)
263
MediaState
mediaState
270
if (_loadedBehavior !=
MediaState
.Manual && _unloadedBehavior !=
MediaState
.Manual)
367
MediaState
thisStateRequest = _mediaState._value;
382
thisStateRequest =
MediaState
.Manual;
390
else if (_loadedBehavior !=
MediaState
.Manual)
399
if (_loadedBehavior !=
MediaState
.Manual)
401
thisStateRequest =
MediaState
.Play;
415
if (_unloadedBehavior !=
MediaState
.Manual)
427
Invariant.Assert(_unloadedBehavior ==
MediaState
.Manual);
431
thisStateRequest =
MediaState
.Manual;
451
if ( thisStateRequest !=
MediaState
.Close
452
&& thisStateRequest !=
MediaState
.Manual)
474
if (_currentState ==
MediaState
.Close || _source._isSet)
501
if (_currentState ==
MediaState
.Close || _clock._isSet)
525
else if (thisStateRequest ==
MediaState
.Close)
527
if (_currentState !=
MediaState
.Close)
537
_currentState =
MediaState
.Close;
545
if (_currentState !=
MediaState
.Close || openedMedia)
598
if (thisStateRequest ==
MediaState
.Play && _source._isSet)
631
case
MediaState
.Play:
635
case
MediaState
.Pause:
639
case
MediaState
.Stop:
643
case
MediaState
.Manual:
843
private
MediaState
_unloadedBehavior =
MediaState
.Close;
844
private
MediaState
_loadedBehavior =
MediaState
.Play;
846
private
MediaState
_currentState =
MediaState
.Close;
855
SettableState<
MediaState
> _mediaState;
System\Windows\Controls\MediaElement.cs (14)
184
typeof(
MediaState
),
187
MediaState
.Close,
197
typeof(
MediaState
),
200
MediaState
.Play,
240
_helper.SetState(
MediaState
.Play);
251
_helper.SetState(
MediaState
.Pause);
262
_helper.SetState(
MediaState
.Stop);
273
_helper.SetState(
MediaState
.Close);
380
public
MediaState
UnloadedBehavior
384
return (
MediaState
)GetValue(UnloadedBehaviorProperty);
401
public
MediaState
LoadedBehavior
405
return (
MediaState
)GetValue(LoadedBehaviorProperty);
870
target._helper.SetUnloadedBehavior((
MediaState
)e.NewValue);
890
target._helper.SetLoadedBehavior((
MediaState
)e.NewValue);