MediaElement.Balance Property

July 28, 2014

Gets or sets a ratio of volume across stereo speakers.

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

'Declaration
Public Property Balance As Double
<MediaElement Balance="double"  .../>

Property Value

Type: System.Double
The ratio of volume across speakers in the range between -1 and 1. The default value is 0.

Dependency property identifier field: BalanceProperty

A value of -1 represents 100 percent volume in the speakers on the left, and a value of 1 represents 100 percent volume in the speakers on the right. 0 indicates that the volume is evenly distributed between left and right speakers.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft