MediaElement.Volume Property

Gets or sets the media's volume.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public double Volume { get; set; }
<MediaElement Volume="double"/>

Property Value

Type: System.Double
The media's volume represented on a linear scale between 0 and 1. The default is 0.5.

Dependency property identifier field: VolumeProperty

Volume can be difficult to quantify because each media file has a different baseline for its recorded or perceived audio level. Also, true audio volume as represented on the decibel scale is inherently logarithmic. You can think of the Volume property as representing the position value of an audio mixer slider control, with 0 being all the way down and 1 being all the way up. The default value for the Volume property is 0.85.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft