Reputation: 216
Does anyone knows how to implement menu item with toggle icon similar to visual studio Toolbar menu.
Upvotes: 2
Views: 509
Reputation: 216
Thank you Jack for your reply. Solution would be adding two menu items(with and without checkbox icon) and toggle the visibility state of both menu items in BeforeQueryStatus event.
Upvotes: 0
Reputation: 6436
You need to create a class to handles the command´s BeforeQueryStatus event and use the checkbox in your side.
The simliar issue has been asked here:
How to create command menu item with checkbox?
Upvotes: 1