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.
可能重复: 如何在 MenuItem 中放置图标
我想在退出菜单项旁边放置一个门箭头图标。这可能吗?我敢肯定,因为我以前在其他地方见过它。
假设您使用的是 Visual Studio 2012,使用设计器向菜单添加图标应该非常简单。
右键单击要添加图标的菜单项,然后选择设置图像。
我不记得此选项在以前版本的 Visual Studio 中是否可用,但应该有一种通过 IDE 设置它的简单方法。
我找到了一个名为 VistaMenu 的开源库,它看起来正是我正在寻找的。它不是自定义绘制的,它是从本机菜单继承的。
http://wyday.com/vistamenu/