title: Embed Windows Media Player in WPF
body: <p>I downloaded the source code from:
  <a href="http://diptimayapatra.wordpress.com/2010/04/05/using-windows-media-player-com-in-wpf/" rel="nofollow noreferrer">http://diptimayapatra.wordpress.com/2010/04/05/using-windows-media-player-com-in-wpf/</a></p>
  
  <p>I want to customize the play, buy add Play, Pause and Stop buttons to the form.</p>
  
  <p>However I can't access the method: <code>axWmp.Ctlcontrols.play();</code></p>
  
  <blockquote>
    <p>'WMPLib.IWMPControls' does not contain a definition for 'play' and no extension method 'play' accepting a first argument of type 'WMPLib.IWMPControls' could be found (are you missing a using directive or an assembly reference?)'</p>
  </blockquote>
  
  <p>This would not happen if I add Windows Media Player under Windows Form .NET 2.0 Application. Is there any way to access the <code>.play()</code> and <code>.stop()</code> functions?</p>