RelativeSourceMode Enum
Definition
Defines the mode of a Avalonia.Data.RelativeSource object.
public enum RelativeSourceMode
Fields
| Name | Description |
|---|---|
| DataContext | The binding will be to the control's data context. |
| FindAncestor | The binding will be to an ancestor of the control in the visual tree. |
| Self | The binding will be to the control itself. |
| TemplatedParent | The 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