title: How to change the volume in System.Windows.Media.MediaPlayer()
body: <p>I write the code blow but I cannot change the volume of the sound. I changed "a.Volume = 5;"  but this did not affect anything. How can I change the volume of the audio. Thanks</p>
  
  <pre><code>var a = new System.Windows.Media.MediaPlayer();
  
  a.Open(new System.Uri(@"\a.wav”))
  
  a.Volume = 5;
  
  a.Play();
  </code></pre>