Relative​Source Relative​Source Relative​Source Class

Definition

Implements a markup extension that describes the location of the binding source relative to the position of the binding target.

public : class RelativeSource : DependencyObject, IRelativeSourcepublic class RelativeSource : DependencyObject, IRelativeSourcePublic Class RelativeSource Inherits DependencyObject Implements IRelativeSource
<dependencyobjectdependencyproperty="Binding ... RelativeSource={RelativeSource mode}}" />
Inheritance
RelativeSourceRelativeSourceRelativeSource
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited methods

Inherited properties

Constructors

RelativeSource() RelativeSource() RelativeSource()

Initializes a new instance of the RelativeSource class by using default relative source mode.

public : RelativeSource()public RelativeSource()Public Sub New()
Attributes

Properties

Mode Mode Mode

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

public : RelativeSourceMode Mode { get; set; }public RelativeSourceMode Mode { get; set; }Public ReadWrite Property Mode As RelativeSourceMode
<dependencyobjectdependencyproperty="Binding ... RelativeSource={RelativeSource mode}}" />
Value
RelativeSourceMode RelativeSourceMode RelativeSourceMode

A value of the enumeration.

Attributes

See Also