RelativeSourceMode Enumeration

July 28, 2014

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

© 2014 Microsoft