desktop9:FileExplorerClassicContextMenuHandler
Registers a legacy IContextMenu implementation of a context menu handler shell extension for a packaged desktop app.
Element hierarchy
<desktop9:FileExplorerClassicContextMenuHandler>
Syntax
<desktop9:FileExplorerClassicContextMenuHandler>
desktop9:ExtensionHandler{0,1000}
</desktop9:FileExplorerClassicContextMenuHandler>
Key
{}
A specific range of occurrences
Attributes and elements
Attributes
None.
Child elements
Child element | Description |
---|---|
desktop9:ExtensionHandler | Specifies a handler for a legacy IContextMenu implementation. |
Parent elements
Parent element | Description |
---|---|
desktop9:Extenson | Declares an extensibility point for the app. |
Remarks
Packaged desktop apps that use the legacy IContextMenu COM interface to implement a context menu shell extension should include this element in their package manifest file. For more information, see Support legacy context menus for packaged apps.
The AppXManifest file must have the dependency MaxTested set to at least version 10.0.21300.0. Support for OS builds starting with the minimum version of 10.0.21300.0.
Examples
The following example shows the usage of the FileExplorerClassicDragDropContextMenuHandler element within a package manifest file to register a context menu shell extension.
<desktop9:Extension Category="windows.fileExplorerClassicContextMenuHandler">
<desktop9:FileExplorerClassicContextMenuHandler>
<desktop9:ExtensionHandler Type="*" Clsid="<GUID-for-the-com-server>" />
<desktop9:ExtensionHandler Type=".txt" Clsid="<GUID-for-the-com-server>" />
<desktop9:ExtensionHandler Type="Directory" Clsid="<GUID-for-the-com-server>" />
</desktop9:FileExplorerClassicContextMenuHandler>
</desktop9:Extension>
This example assumes you have added the desktop9 xml namespace to your manifest file using the following syntax.
<xmlns:desktop9="http://schemas.microsoft.com/appx/manifest/desktop/windows10/9">
Requirements
Item | Value |
---|---|
Namespace | http://schemas.microsoft.com/appx/manifest/desktop/windows10/9 |
Minimum OS Version | Windows 11 version 21H2 (Build 22159) |