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.

Syntax

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

Property Value

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

Exceptions

Exception Condition
InvalidOperationException

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

Remarks

For XAML usage of RelativeSource and its properties, see.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

RelativeSource Class

System.Windows.Data Namespace