RelativeSourceMode Enumeration
Defines the mode of a RelativeSource object.
Definition
Namespace: Avalonia.Data
Assembly: Avalonia.Markup (in Avalonia.Markup.dll)
- C#
- VB
- F#
public enum RelativeSourceMode
Public Enumeration RelativeSourceMode
type RelativeSourceMode
Members
DataContext | 0 | The binding will be to the control's data context. |
TemplatedParent | 1 | The binding will be to the control's templated parent. |
Self | 2 | The binding will be to the control itself. |
FindAncestor | 3 | The binding will be to an ancestor of the control in the visual tree. |