RelativeSourceMode Enumeration

RelativeSourceMode Enumeration

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

Defines constants that describe 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 enum RelativeSourceMode
See Remarks

Member nameDescription
TemplatedParentRefers to the element to which the template (in which the data-bound element exists) is applied.
SelfRefers to the element on which you are setting the binding and allows you to bind one property of that element to another property on the same element.

This class is used by the RelativeSource.Mode property.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft