title: UWP Touch Volume Control
body: <p>I need to implement Tap (Touch) volume control using UWP code. </p>
  
  <p>For example, if I tap a button in my terminal, the volume of tapping sound could control in App settings. This control must link into the mobile or any other devices. </p>
  
  <p>Few investigations: Tap sound from an adjustment of Ringtone Volume in our mobile. so we need to get the response from Ringtone settings. </p>
  
  <p>I've searched most about this, but couldn't find the solution.</p>
  
  <p><strong>Update</strong></p>
  
  <p>at Slider change event:</p>
  
  <pre><code>Slider slider = sender as Slider; 
  double volumeLevel = slider.Value / 10; 
  ElementSoundPlayer.Volume = volumeLevel; 
  //CurrVolumeLevel = (double)ElementSoundPlayer.Volume; 
  CurrVolumeLevel = volumeLevel; 
  </code></pre>
  
  <p>At pageload: </p>
  
  <pre><code>//player = new MediaPlayer(); 
  CurrVolumeLevel = (double)ElementSoundMode.Default; 
  ElementSoundPlayer.State = ElementSoundPlayerState.Aut
  </code></pre>
  
  <p>o</p>