ToggleButton check mark or bullet... RRS feed

  • Question

  • The Explorer ribbon in Windows 8 / 10 has a "Sort By" DropDownButton control that includes a menu with, what I assume, are ToggleButton menu items.  When you choose a column to sort by or whether to sort in ascending or descending order, the menu reflects the choice by changing the icon to a bullet or check mark.

    Is there a way to do this automatically?  When I create a similar control, I get the blue highlighting around what would be the icon, but no icon.  It appears that I could make my own icon and manually update all of the icons, but that seems like an inordinate amount of work.

    Wednesday, June 8, 2016 6:48 PM


  • Jeez.  I posted and then immediately had the idea to put a CheckBox control in the menu instead of a ToggleButton.  Problem solved.
    • Marked as answer by ntirw Wednesday, June 8, 2016 6:56 PM
    Wednesday, June 8, 2016 6:56 PM