I have several setting that a user can choose from the menu. When they select one, I want to highlight that
I understand there are two behaviors
a. Have button to be in pressed-down state like "B" button for Bold in MSWord. Done using the Checked property of the tool
b. Have a checkbox in front of the selected tool. I understand the StateButtonToolbarDisplayStyle.Glyph would do that for me.
My question:
I am setting Checked to true and setting the StateButtonToolbarDisplayStyle to Glyph
But I do get neither behavior a or b above. I just show the plain buttontool.
What do you think I may have missed to set?
I am trying to use a StateButtonTool in a ribbon group.
I've set the initial state at the start of my application to checked. When I use the debugger I can see that the checked option is true but in my ribbon menu the button isn't checked...
What am I doing wrong?
The ToolbarDisplayStyle is only used when the StateButtonTool is used in a toolbar or ribbon group. If the tool is in a menu, use the MenuDisplayStyle. Set the value to DisplayCheckmark to see a check for the tool in the icon area.