Skip to main content

RelativeSourceMode Enum

Definition

Namespace:Avalonia.Data
Assembly:Avalonia.Base
Package:Avalonia

Defines the mode of a Avalonia.Data.RelativeSource object.

public enum RelativeSourceMode

Inheritance: Enum -> RelativeSourceMode

Fields

NameDescription
DataContextThe binding will be to the control's data context.
FindAncestorThe binding will be to an ancestor of the control in the visual tree.
SelfThe binding will be to the control itself.
TemplatedParentThe binding will be to the control's templated parent.

DataContext Field

The binding will be to the control's data context.

public Avalonia.Data.RelativeSourceMode DataContext

FindAncestor Field

The binding will be to an ancestor of the control in the visual tree.

public Avalonia.Data.RelativeSourceMode FindAncestor

Self Field

The binding will be to the control itself.

public Avalonia.Data.RelativeSourceMode Self

TemplatedParent Field

The binding will be to the control's templated parent.

public Avalonia.Data.RelativeSourceMode TemplatedParent