Skip to main content

RelativeSourceMode Enumeration

Defines the mode of a RelativeSource object.

Definition​

Namespace: Avalonia.Data
Assembly: Avalonia.Markup (in Avalonia.Markup.dll)

public enum RelativeSourceMode

Members​

DataContext0The binding will be to the control's data context.
TemplatedParent1The binding will be to the control's templated parent.
Self2The binding will be to the control itself.
FindAncestor3The binding will be to an ancestor of the control in the visual tree.

See Also​

Reference​

Avalonia.Data Namespace