title: MediaElement in ElementHost Windows Form C#
body: <p>I'm trying to create a simple <code>MediaPlayer</code>, but I need to mute left/right audio channels, so I have to use <code>MediaElement</code>. I got the following error when I tried to add the player to the <code>ElementHost</code>:</p>
  <blockquote>
  <p>Error CS1503   Argument1: impossible to convert from</p>
  <p>'System.Windows.Controls.MediaElement' to</p>
  <p>'System.Windows.Forms.Control'.</p>
  </blockquote>
  <p>Here's the code:</p>
  <pre><code>ElementHost host = new ElementHost();
  System.Windows.Controls.MediaElement player = new System.Windows.Controls.MediaElement();
  host.Dock = DockStyle.Fill;
  host.Controls.Add(player);
  </code></pre>