RelativeSourceMode enumeration

Applies to Windows and Windows Phone

Defines constants that describe the location of the binding source relative to the position of the binding target.

Syntax


public enum RelativeSourceMode


<objectproperty="enumMemberName" />

Attributes

[Version(0x06020000)]
[WebHostHidden()]

Members

The RelativeSourceMode enumeration has these members.

MemberValueDescription
None0

Don't use this value of RelativeSourceMode; always use either Self or TemplatedParent.

TemplatedParent1

Refers to the element to which the template (in which the data-bound element exists) is applied. This is similar to setting a TemplateBinding Markup Extension and is only applicable if the Binding is within a template.

Self2

Refers 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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Data
Windows::UI::Xaml::Data [C++]

Metadata

Windows.winmd

See also

Binding
XAML data binding sample
Data binding overview

 

 

Show:
© 2014 Microsoft