Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Definition
Namespace: Microsoft.CommandPalette.Extensions.Toolkit
Inherits CommandItem
Implements ICommandContextItem
The CommandContextItem class represents a command item in the command palette that is associated with a specific context. It extends the functionality of the CommandItem class by adding properties and behaviors related to context-specific commands. This class is used to create and manage command items that are relevant to a particular context within the command palette framework.
Constructors
| Constructor | Description |
|---|---|
| CommandContextItem(ICommand) | Initializes a new instance of the CommandContextItem class, setting its Command property to command and its Title to the Name of the command. |
| CommandContextItem(String, String, String, Action, ICommandResult) | Initializes a new instance of the CommandContextItem class, setting its Title, Subtitle, Icon, and Command properties. |
Properties
| Property | Type | Description |
|---|---|---|
| IsCritical | Boolean | Indicates whether the command item is critical. |
| RequestedShortcut | KeyChord | The requested keyboard shortcut for the command item. |
Windows developer