MediaPlayer.Volume Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get or sets the audio volume for media playback.
public:
property double Volume { double get(); void set(double value); };
double Volume();
void Volume(double value);
public double Volume { get; set; }
var double = mediaPlayer.volume;
mediaPlayer.volume = double;
Public Property Volume As Double
Property Value
Double
double
The audio volume for media playback. The allowed range of values is 0 to 1. Values outside of this range will be ignored. The default value is 1.