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