Skip to main content

Items Property

Gets the items to display.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

[ContentAttribute]
public ItemCollection Items { get; }

Property Value

ItemCollection

Remarks

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.

See Also

Reference

ItemsControl Class
Avalonia.Controls Namespace