I have a simple program that fills a menu with the colors in System.Windows.Media.Colors using a ObjectDataProvider. My problem is with checking items in the menu. I can check the newly selected menu item in my click event handler (commented out in the code
below). However, I can't figure out how to turn off the previous checked menu item. I thought I had to traverse through the parent menu's Items collection and turn off IsChecked for each of them. But the Items collection consists of PropertyInfo objects. So,
I can't do that.
I could use a field to keep a record of what was the last selected menu item. That would work except I can't figure out how to check the initial color, Red in the code below.
View Complete Post