You can control the sound volume for your own application using the Volume Media Media property. It does not control the total system volume, but allows you to set your own application volume.
https://msdn.microsoft.com/en-us/library/windows/apps/windows.media.playback.mediaplayer.volume.aspx
For example, I have a view model in which I expose the following property and to which the property of the slider property is bound. (My Min slider is 0, and its Max is 100, so I convert the 0-1 value of the MediaPlayer volume property to the range 0-100.)
(NOTE: I also have a single “BackgroundAudioService” to wrap the link to the background sound of MediaPlayer, as the background audio project of the UWP sample on github demonstrates, but it's just a link to MediaPlayer.)
public double Volume { get { this.volume = (BackgroundAudioService.Instance.CurrentPlayer.Volume * 100); return this.volume; } set { this.volume = value; BackgroundAudioService.Instance.CurrentPlayer.Volume = (this.volume / 100); this.RaisePropertyChanged(); } }
If this does not work, try checking and installing the system volume, since this method only controls the volume of your application.
source share