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
450
StateButton grouping across different tabs
posted

I've got a set of statebuttons in my xamribbon spread out across various tabs, all belonging to the same group. When I click on individual statebuttons they behave as expected, toggling their checked states on and off accordingly.

However, when I have a statebutton selected then switch tabs to select another statebutton, then switch tabs back again, the button I last selected on the first tab is still highlighted. It appears that the button highlighting remains in the context of each tab.

Functionally it still works: clicking on any button whether appearing as checked still re-selects it accordingly. It's just that it's misleading because I may not be on whatever button that is currently displaying as selected.

Is there any way to solve this?

Parents
  • 22015
    posted

    Hello borong,

     

    Thank you for your post!

     

    I have been looking into it and have created a small sample application for you. In the sample application I have handled the RibbonTabItemSelected event. In the handler of the event I am getting the RadioButtonTools, that are in the different tabs of the XamRibbon. Then I check the name of the group of the RadioButtonTool and set the IsChecked property of the Tool.

    This way you can uncheck the radio button. You can set your desired checks when the RadioButton should be checked/unchecked when the user switches the tab of the XamRibbon.

     

    Please find the attached sample application and feel free to let me know if you have any further questions on this matter.

    Ribbon_RadioButton.zip
Reply Children