Items Property
Gets the items to display.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
[ContentAttribute]
public ItemCollection Items { get; }
<ContentAttribute>
Public ReadOnly Property Items As ItemCollection
Get
[<ContentAttribute>]
member Items : ItemCollection with get
Property Value
ItemCollectionRemarks
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.