Class ItemsPresenter
- Namespace
- Avalonia.Controls.Presenters
- Assembly
- Avalonia.Controls.dll
Presents items inside an ItemsControl.
public class ItemsPresenter : Control, INotifyPropertyChanged, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, IStyleable, INamed, IInputElement, IDataTemplateHost, ISetterValue, ILogicalScrollable, IScrollable
- Inheritance
-
ItemsPresenter
- Implements
- Inherited Members
- Extension Methods
Constructors
ItemsPresenter()
public ItemsPresenter()
Fields
ItemsPanelProperty
Defines the ItemsPanel property.
public static readonly StyledProperty<ITemplate<Panel?>> ItemsPanelProperty
Field Value
Properties
ItemsPanel
Gets or sets a template which creates the Panel used to display the items.
public ITemplate<Panel?> ItemsPanel { get; set; }
Property Value
Panel
Gets the panel used to display the items.
public Panel? Panel { get; }
Property Value
Methods
ApplyTemplate()
Creates the visual children of the control, if necessary
public override sealed void ApplyTemplate()
OnPropertyChanged(AvaloniaPropertyChangedEventArgs)
Called when a avalonia property changes on the object.
protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)
Parameters
change
AvaloniaPropertyChangedEventArgsThe property change details.