ItemsControlItems Property
Gets the items to display.
Namespace: Avalonia.ControlsAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
[ContentAttribute]
public ItemCollection Items { get; }
<ContentAttribute>
Public ReadOnly Property Items As ItemCollection
Get
[<ContentAttribute>]
member Items : ItemCollection with get
Property Value
ItemCollection
You use either the
Items or the
ItemsSource property to
specify the collection that should be used to generate the content of your
ItemsControl. When the
ItemsSource property is set, the
Items collection is made read-only and fixed-size.
When
ItemsSource is in use, setting the
ItemsSource
property to null removes the collection and restores usage to
Items,
which will be an empty
ItemCollection.