RelativeSource RelativeSource RelativeSource Class

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

Syntax

Declaration

public class RelativeSourcepublic class RelativeSourcePublic Class RelativeSource
<dependencyobjectdependencyproperty="Binding ... RelativeSource={RelativeSource mode}}" />

Inheritance Hierarchy

Constructors summary

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

Properties summary

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

Constructors

  • RelativeSource()
    RelativeSource()
    RelativeSource()
    RelativeSource()

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

    public RelativeSource()public New()Public Sub New()public RelativeSource()

Properties

  • Mode
    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 RelativeSourceModepublic RelativeSourceMode Mode { get; set; }
    <dependencyobjectdependencyproperty="Binding ... RelativeSource={RelativeSource mode}}" />
    

    Property Value

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ComposableAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute

Details

Assembly

Windows.UI.Xaml.Data.dll