Edit

Share via


CommandResult.KeepOpen() Method

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

Do nothing. This leaves the palette in its current state, with the current page stack and query.

Note

If the command navigates to another application, the palette's default behavior is to hide itself when it loses focus. When the user next activates the Command Palette, it will be in the same state as when it was hidden.

Creates a new CommandResult instance with its Kind property set to CommandResultKind.KeepOpen and its Args set to null.

Returns

A CommandResult instance.