/// <summary>
 /// Creates a new instance of FullScreenButtonBehavior.
 /// </summary>
 public FullScreenButtonBehavior()
 {
     Command      = ViewModelCommandFactory.CreateFullScreenCommand();
     SetLabel     = MediaPlayer.GetResourceString("ExitFullScreenButtonLabel");
     UnsetLabel   = MediaPlayer.GetResourceString("FullScreenButtonLabel");
     SetContent   = XamlReader.Load(MediaPlayer.GetResourceString("ExitFullScreenButtonContent"));
     UnsetContent = XamlReader.Load(MediaPlayer.GetResourceString("FullScreenButtonContent"));
 }
 /// <summary>
 /// Creates a new instance of ZoomButtonBehavior.
 /// </summary>
 public ZoomButtonBehavior()
 {
     Command      = ViewModelCommandFactory.CreateZoomCommand();
     SetLabel     = MediaPlayer.GetResourceString("ZoomOutScreenButtonLabel");
     UnsetLabel   = MediaPlayer.GetResourceString("ZoomInScreenButtonLabel");
     SetContent   = XamlReader.Load(MediaPlayer.GetResourceString("ZoomOutScreenButtonContent"));
     UnsetContent = XamlReader.Load(MediaPlayer.GetResourceString("ZoomInScreenButtonContent"));
 }
        /// <summary>
        /// Creates a new instance of TimeElapsedButtonBehavior.
        /// </summary>
        public TimeElapsedButtonBehavior()
        {
            Command = ViewModelCommandFactory.CreateSkipBackCommand();

            skipBackPointerOverStringFormat = MediaPlayer.GetResourceString("SkipBackPointerOverStringFormat");

            Label = MediaPlayer.GetResourceString("TimeElapsedButtonLabel");
        }
 /// <summary>
 /// Creates a new instance of MuteButtonBehavior.
 /// </summary>
 public MuteButtonBehavior()
 {
     Command      = ViewModelCommandFactory.CreateMuteCommand();
     SetLabel     = MediaPlayer.GetResourceString("UnmuteButtonLabel");
     UnsetLabel   = MediaPlayer.GetResourceString("MuteButtonLabel");
     SetContent   = XamlReader.Load(MediaPlayer.GetResourceString("MuteButtonContent"));
     UnsetContent = XamlReader.Load(MediaPlayer.GetResourceString("UnmuteButtonContent"));
 }
        /// <summary>
        /// Creates a new instance of TimeRemainingButtonBehavior.
        /// </summary>
        public TimeRemainingButtonBehavior()
        {
            Command = ViewModelCommandFactory.CreateSkipAheadCommand();

            skipAheadPointerOverStringFormat = MediaPlayer.GetResourceString("SkipAheadPointerOverStringFormat");

            Label = MediaPlayer.GetResourceString("TimeRemainingButtonLabel");
        }
 /// <summary>
 /// Creates a new instance of PlayPauseButtonBehavior.
 /// </summary>
 public PlayPauseButtonBehavior()
 {
     Command          = ViewModelCommandFactory.CreatePlayPauseCommand();
     SetLabel         = MediaPlayer.GetResourceString("PlayButtonLabel");
     UnsetLabel       = MediaPlayer.GetResourceString("PauseButtonLabel");
     SetContent       = MediaPlayer.GetResourceString("PlayButtonContent");
     UnsetContent     = MediaPlayer.GetResourceString("PauseButtonContent");
     ContentConverter = new XamlConverter(); // instead of creating Xaml here, we will use a converter to convert the string each time it is re-assigned. This fixes a problem with old visual state changes being applied to the content when it switches.
 }
 /// <summary>
 /// Creates a new instance of SkipAheadButtonBehavior.
 /// </summary>
 public SkipAheadButtonBehavior()
 {
     Label   = MediaPlayer.GetResourceString("SkipAheadButtonLabel");
     Command = ViewModelCommandFactory.CreateSkipAheadCommand();
     Content = XamlReader.Load(MediaPlayer.GetResourceString("SkipAheadButtonContent"));
 }
 /// <summary>
 /// Creates a new instance of AudioSelectionButtonBehavior.
 /// </summary>
 public AudioSelectionButtonBehavior()
 {
     Label   = MediaPlayer.GetResourceString("AudioSelectionButtonLabel");
     Command = ViewModelCommandFactory.CreateAudioSelectionCommand();
     Content = XamlReader.Load(MediaPlayer.GetResourceString("AudioSelectionButtonContent"));
 }
 /// <summary>
 /// Creates a new instance of ReplayButtonBehavior.
 /// </summary>
 public ReplayButtonBehavior()
 {
     Command = ViewModelCommandFactory.CreateReplayCommand();
     Label   = MediaPlayer.GetResourceString("ReplayButtonLabel");
     Content = XamlReader.Load(MediaPlayer.GetResourceString("ReplayButtonContent"));
 }