Skip to content

Commit 898d5c0

Browse files
committed
add content to invoke
1 parent 6976cbe commit 898d5c0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

hub/powertoys/command-palette/microsoft-commandpalette-extensions/iinvokablecommand_invoke.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ The method called when a user selects a command.
1717
## Parameters
1818

1919
`sender` Object
20-
Represents the context of where the command was invoked from.
20+
Represents the context of where the command was invoked from. This can be different types depending on where the command is being used:
21+
22+
- [TopLevelCommands](icommandprovider_toplevelcommands.md) (and fallbacks): `sender` is the [ICommandItem](icommanditem.md) for the top-level command that was invoked
23+
- [IListPage.GetItems()](ilistpage_getitems.md): `sender` is the [IListItem](ilistitem.md) for the list item selected for that command
24+
- [ICommandItem.MoreCommands](icommanditem.md) (context menus): `sender` is either the [IListItem](ilistitem.md) which the command was attached to for a list page or the [ICommandItem](icommanditem.md) of the top-level command (if this is a context item on a top-level command)
25+
- [IContentPage.Commands](icontentpage.md): `sender` is the [IContentPage](icontentpage.md) itself
2126

2227
## Returns
2328

0 commit comments

Comments
 (0)