In our application we use a collection of ButtonTools in a MenuTool to turn on/off visibility of different charts. How can I visualize which button is the last one selected?
If have tried to switch between different images, but this does not work
Hello underlid,
I am just checking if you have any further questions on this matter. Please do not hesitate to let me know if you do.
I have been looking into your issue. One other approach, that I can suggest is to use a ToggleButtonTool if multiple items, should be checked. More about the ToggleButtonTool you can find on the following link from our documentation: http://help.infragistics.com/doc/WPF/2014.2/CLR4.0/?page=xamRibbon_Toggle_Button.html.
If a single item should be check you can use a RadioButtonTool. For more information about this tool you can check the following link: http://help.infragistics.com/doc/WPF/2014.2/CLR4.0/?page=xamRibbon_Radio_Button.html.
Please do not hesitate to let me know if you have any further questions on this matter.
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 a XamRibbon with a MenuTool and two ButtonTools in it.
Then I have added a style for the ToolMenuItem and set its IsCheckable property to true. This way when a ButtonTool is checked a small check would appear in front of it.
Then I have added the default template for the ToolMenuItem and added a Setter for the MenuItem_Hover grid to be visible when the IsChecked property of the ToolMenuItem is true.
Please find the sample application attached and feel free to let me know if you have any further questions on this matter.