RelativeSource RelativeSource RelativeSource RelativeSource 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, IRelativeSource
public class RelativeSource : DependencyObject, IRelativeSource
Public Class RelativeSource Inherits DependencyObject Implements IRelativeSource
var relativeSource = new relativeSource();
<dependencyobjectdependencyproperty="Binding ... RelativeSource={RelativeSource mode}}" />
Inheritance
RelativeSourceRelativeSourceRelativeSourceRelativeSource
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

RelativeSource() RelativeSource() RelativeSource() RelativeSource()

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

public : RelativeSource()
public RelativeSource()
Public Sub New()
var relativeSource = new 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 RelativeSourceMode
var relativeSourceMode = relativeSource.mode;
relativeSource.mode = relativeSourceMode;
<dependencyobjectdependencyproperty="Binding ... RelativeSource={RelativeSource mode}}" />

Dispatcher Dispatcher Dispatcher Dispatcher

Inherited from DependencyObject

Methods

ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty)

Inherited from DependencyObject

GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty)

Inherited from DependencyObject

GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty)

Inherited from DependencyObject

ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty)

Inherited from DependencyObject

RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback)

Inherited from DependencyObject

SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object)

Inherited from DependencyObject

UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64)

Inherited from DependencyObject

See Also