Edit

Share via


CommandResult.GoHome() Method

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

Navigate back to the main page of the Command Palette and keep it open. This clears out the current stack of pages, but keeps the palette open.

Note

If the command navigates to another application, the palette's default behavior is to hide itself when it loses focus. That will behave the same as Dismiss in that case.

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

Returns

A CommandResult instance.

Example

See Command Results for an example of how to use this.