title: UWP MediaPlayerElement - Poster Stay Put Until Played
body: <p>The UWP MediaPlayerElement has both a PosterSource and a VideoSource.  This question is primarily about keeping the PosterSource showing until Play.</p>
  <p><a href="https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.mediaplayerelement.postersource?view=winrt-19041#remarks" rel="nofollow noreferrer">Docs</a> state:</p>
  <ul>
  <li>When a valid source is not set. For example, Source is not set,
  Source was set to Null, or the source is invalid (as is the case when
  a MediaFailed event fires).</li>
  <li>While media is loading. For example, a
  valid source is set, but the MediaOpened event has not fired yet.</li>
  <li>When media is streaming to another device.</li>
  <li>When the media is audio only.</li>
  </ul>
  <p>What I'm trying to determine is how to keep the Poster image showing even after the Media has finished downloading when auto play is off.  Sadly the first frame+ is a black screen.  So I want the poster to show until the play button is pressed.</p>
  <p>Ideas?</p>
  <p><strong>EDIT:</strong></p>
  <p>Faywang was very helpful.</p>
  <p>In addition to his comments I did the following:</p>
  <pre><code>private void PlayPauseButton_EnabledChanged(object sender, DependencyPropertyChangedEventArgs e)
  {
      var button = (sender as AppBarButton);
      if(!(bool)e.newValue)
      {
          button.IsEnabled = true;
      }
  }
  </code></pre>