Share via


ElementSoundPlayer.Volume Property

Definition

Gets or sets the volume of the sounds played by the Play method.

public:
 static property double Volume { double get(); void set(double value); };
static double Volume();

static void Volume(double value);
public static double Volume { get; set; }
var double = ElementSoundPlayer.volume;
ElementSoundPlayer.volume = double;
Public Shared Property Volume As Double

Property Value

Double

double

The volume of the sounds played by the Play method. The default is 1.0.

Remarks

You can set the Volume property to reduce the volume relative to the system volume. 1.0 is the maximum and is equal to the system volume. 0.0 is the minimum and is the same as muted.

For more info, see Sound in UWP apps.

Applies to