I have a several MenuItem’s inside a ContextMenu in my wp7 app using silverlight. In a particular scenario, I need to place a checkmark beside one of the items.
Is there any way to do this?
I would settle for adding a Image control to the right of it if I had to.
I’ve even tried doing this:
CheckBox box = new CheckBox();
menuItem.Items.Add(box);
but got a NotImplementedException.
Thanks!
I found an easy way to get this working. I bound the menu item’s Header text property in xaml to a string property which adds the unicode checkmark character (0x2714) if the flag is set.
I defined the dependency properties in my data context object like so:
When the menu item is selected, I toggle the checkmark property.