【问题标题】:Add context menu item to Windows Explorer's File context in UWP在 UWP 中将上下文菜单项添加到 Windows 资源管理器的文件上下文中
【发布时间】:2020-03-18 02:03:11
【问题描述】:

我正在构建一个 UWP 应用程序,我需要在其中将它的一些功能添加到 Windows 资源管理器的文件上下文中,也就是说,当用户使用鼠标右键单击某个(或任何)文件或文件夹时,会出现将是一个菜单项,其中包含我的应用程序提供的选项,很像 Windows 默认存在的“发送到...”和“打开方式...”选项。我还想让用户能够禁用菜单或其中的一些选项,所以我想知道是否可以动态添加和删除选项以及整个菜单本身。

【问题讨论】:

    标签: c# uwp contextmenu windows-explorer


    【解决方案1】:

    您可以使用 fileTypeAssociation 来实现这一点。 此链接将帮助您做到这一点。

    [UWP]How to add an item into Windows Explorer context menu?

    Add options to the context menus of files that have a certain file type

    Handle File Activation.

    希望这会有所帮助。

    谢谢。

    【讨论】:

      猜你喜欢
      • 2023-03-27
      • 2016-05-10
      • 1970-01-01
      • 2015-07-11
      • 1970-01-01
      • 2011-09-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多