Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
9364
StateButtonTool - Glyph and Checked does not change behavior
posted

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?

Parents
No Data
Reply
  • 44743
    posted

    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.

Children