Edit

Share via


ListPage Class

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

Implements Page, IListPage

The ListPage class defines a page that displays a list of items. It provides properties and methods to manage the display and interaction with the list of items.

Properties

Property Type Description
EmptyContent ICommandItem The content to display when the list is empty.
Filters IFilters The filters to apply to the list of items.
GridProperties IGridProperties The properties for the grid layout of the list.
HasMoreItems Boolean Indicates if there are more items to load.
PlaceholderText String The placeholder for the filter on the page.
SearchText String The text to filter the list of items.
ShowDetails Boolean Indicates if the details of the items should be shown.

Events

Event Description
Windows.Foundation.TypedEventHandler<object, IItemsChangedEventArgs> ItemsChanged Occurs when the items in the list have changed.

Methods

Method Description
GetItems() Returns the list of items.
LoadMore() Loads more items into the list.
RaiseItemsChanged(Integer) Raises the ItemsChanged event.