You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hub/powertoys/command-palette/microsoft-commandpalette-extensions/iinvokablecommand_invoke.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,12 @@ The method called when a user selects a command.
17
17
## Parameters
18
18
19
19
`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
0 commit comments