Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MediaElement.Balance Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

public double Balance { get; set; }
<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: