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
1005
Can't check StateButtonTool in PopupMenuTool
posted

Hi,

I have added a PopupMenuTool to my ribbon bar (configured as a SegmentedStateButton), and populated it with four StateButtonTools (all 4 in the same option group), when one of the sate buttons is clicked I set the checked state for the button to true, but when I drop down the menu no items are checked! :S

I used the code below to set the checked state:

PopupMenuTool legendMenu = (PopupMenuTool)grpChart.Tools["btnLegend"];

((StateButtonTool)legendMenu.Tools["btnLegendBottom"]).Checked = true;

When I examine it in the debugger the StateButtonTool.Checked property IS set, but it never displays that way.

Am I doing something wrong?

Thanks.

Brian