Skip to main content

IDataTemplateHost Interface

Definition​

Assembly:Avalonia.Controls
Package:Avalonia

Defines an element that has a Avalonia.Controls.Templates.IDataTemplateHost.DataTemplates collection.

public interface IDataTemplateHost

Properties​

NameDescription
DataTemplatesGets the data templates for the element.
IsDataTemplatesInitializedGets a value indicating whether Avalonia.Controls.Templates.IDataTemplateHost.DataTemplates is initialized.

DataTemplates Property​

Gets the data templates for the element.

public Avalonia.Controls.Templates.DataTemplates DataTemplates { get; set; }

IsDataTemplatesInitialized Property​

Gets a value indicating whether Avalonia.Controls.Templates.IDataTemplateHost.DataTemplates is initialized.

public bool IsDataTemplatesInitialized { get; set; }

Remarks​

The Avalonia.Controls.Templates.IDataTemplateHost.DataTemplates property may be lazily initialized, if so this property indicates whether it has been initialized.