简体   繁体   English

是否可以将 VSIX XAML 工具栏添加到 Visual Studio?

[英]Is it possible to add VSIX XAML Toolbar to Visual Studio?

Is it possible to add XAML toolbar (instead of native Visual Studio in vsct file) to Visual Studio (in this case Visual Studio Shell)?是否可以将 XAML 工具栏(而不是 vsct 文件中的本机 Visual Studio)添加到 Visual Studio(在本例中为 Visual Studio Shell)? I cannot find any examples in the Internet.我在 Internet 上找不到任何示例。

I would recommend you stick with using a VSCT resource, to keep your extension consistent with the look and feel of the IDE as a whole.我建议您坚持使用 VSCT 资源,以使您的扩展与整个 IDE 的外观和感觉保持一致。

That being said, there is nothing stopping you from designing a toolwindow or custom designer that hosts XAML based toolbars.话虽如此,没有什么能阻止您设计一个工具窗口或自定义设计器来承载基于 XAML 的工具栏。 Some extenders choose to do this, but the buttons hosted are not VS commands, are not exposed to or discoverable via the Tools |一些扩展器选择这样做,但托管的按钮不是 VS 命令,不会通过工具 | 暴露或发现。 Customize dialog, other extensions cannot automate or programmatically access them, and you lose the built in functionality to control visibility/enablement based on active contextUI guids.自定义对话框,其他扩展无法自动化或以编程方式访问它们,并且您失去了基于活动 contextUI guid 控制可见性/启用的内置功能。

Sincerely,真挚地,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM