Edit

Share via


ContentPage Class

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

Inherits Page

Implements IContentPage

The ContentPage class is a specialized page that can be used to display a collection of commands and details in the command palette. It provides a way to organize and present commands in a structured manner, allowing for better user interaction and navigation.

Properties

Property Type Description
Commands IContextItem[] The collection of commands that will be displayed on the page.
Details IDetails The details associated with the page. This can include additional information or context about the commands displayed.

Events

Event Description
Windows.Foundation.TypedEventHandler<object, IItemsChangedEventArgs> ItemsChanged Occurs when the items in the page have changed. This event can be used to update the UI or perform other actions when the commands or details are modified.

Methods

Method Description
GetContent() Retrieves the content of the page, including the commands and details. This method can be used to access the current state of the page and its items.
RaiseItemsChanged(Int) Raises the ItemsChanged event with the new number of items following the change. This method can be used to notify subscribers about changes to the items displayed on the page.