工具窗口工具栏中的拆分按钮

发布于 2025-01-07 06:48:18 字数 182 浏览 5 评论 0原文

我正在编写一个 Visual Studio 2010 扩展,并获得了一个带有 ToolWindowToolbar 的 ToolWindow。

在我的工具栏中,我想添加一个拆分按钮,按下按钮(左侧部分)时将显示“打开文件”对话框,按下箭头(右侧部分)时将显示最近打开的文件列表。

我尝试了几种方法都没有效果,你能帮忙吗?

i'm writing a visual studio 2010 extension and got a ToolWindow with a ToolWindowToolbar.

in my toolbar i want to add a split button that while pressing the button (left part) will show the 'open file' dialog, and when pressing the arrow (right part) will show a list of recently opened files.

i have tried several ways to no avail, can you help?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

薄荷梦 2025-01-14 06:48:19

MSDN Visual Studio 可扩展性论坛中的此主题可能会对您有所帮助。
"位图图标不会出现在 SplitDropDown 上Visual Studio 工具栏中的按钮

This thread from MSDN Visual Studio Extensibility Forum might help you.
"Bitmap icon does not appear on a SplitDropDown button in Visual Studio toolbar"

冰火雁神 2025-01-14 06:48:19

请参阅此讨论中的解决方案

see solution in this discussion

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文