Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以将 XAML 工具栏(而不是 vsct 文件中的本机 Visual Studio)添加到 Visual Studio(在本例中为 Visual Studio Shell)?我在 Internet 上找不到任何示例。
我建议您坚持使用 VSCT 资源,以使您的扩展与整个 IDE 的外观和感觉保持一致。
话虽如此,没有什么能阻止您设计托管基于 XAML 的工具栏的工具窗口或自定义设计器。一些扩展器选择这样做,但托管的按钮不是 VS 命令,不会通过工具 | 暴露或发现。自定义对话框,其他扩展无法自动化或以编程方式访问它们,并且您失去了基于活动 contextUI guid 控制可见性/启用的内置功能。
真挚地,