DataContext Property
Gets or sets the Applications's data context.
Definition
Namespace: Avalonia
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public Object? DataContext { get; set; }
Public Property DataContext As Object
Get
Set
abstract DataContext : Object with get, set
override DataContext : Object with get, set
Property Value
ObjectImplements
IDataContextProvider.DataContextRemarks
The data context property specifies the default object that will be used for data binding.