Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 1.18 KB

File metadata and controls

28 lines (18 loc) · 1.18 KB
title CommandResult.GoHome() Method
description The GoHome method creates a new CommandResult instance with its Kind property set to CommandResultKind.GoHome and its Args set to null.
ms.date 2/11/2025
ms.topic reference
no-loc
PowerToys
Windows
Insider

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.