StyledElementDataContext Property

Gets or sets the control's data context.

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public Object? DataContext { get; set; }

Property Value

Object

Implements

IDataContextProviderDataContext

Remarks

The data context is an inherited property that specifies the default object that will be used for data binding.

See Also