RelativeSource.Mode Property

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

Gets or sets a value that describes the location of the binding source relative to the position of the binding target.

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


Public Property Mode As RelativeSourceMode
public RelativeSourceMode Mode { get; set; }
See Remarks

Property Value

Type: System.Windows.Data..::.RelativeSourceMode
A value of the enumeration.


Exception Condition

When setting this property, the property has already been set to a different value.


For XAML usage of RelativeSource and its properties, see.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0


Windows Phone

See Also


RelativeSource Class

System.Windows.Data Namespace