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
440
Selected button (ButtonTool)
posted

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

Parents
  • 22015
    posted

    Hello underlid,

     

    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.

    Ribbon_SelectedItem_14.2.zip
Reply Children