RelativeSourceMode Enum

Summary

Defines the mode of a RelativeSource object.
Namespace
Avalonia.Data
Interfaces
  • IComparable
  • IFormattable
  • IConvertible
Base Types
  • object
  • ValueType
  • Enum
graph BT Type-->Base0["Enum"] Base0-->Base1["ValueType"] Base1-->Base2["object"] Type-.->Interface0["IComparable"] Type-.->Interface1["IFormattable"] Type-.->Interface2["IConvertible"] Type["RelativeSourceMode"] class Type type-node

Syntax

public enum RelativeSourceMode

Fields

Name Constant Value Summary
DataContext 0
The binding will be to the control's data context.
static
FindAncestor 3
The binding will be to an ancestor of the control in the visual tree.
static
Self 2
The binding will be to the control itself.
static
TemplatedParent 1
The binding will be to the control's templated parent.
static

Extension Methods