I have a RadSplitButton on my form. The RadSplitButton's DropDownContent contains a RadContextMenu. Here's a snippet of the xaml:
In the Window's constructor, after calling InitializeComponent, I create an ObservableCollection and assign it to RejectionReasons. I then populate that ObservableCollection with ItemChoice objects:
But the RadContextMenu's Items collection remains empty, even after I populate the collection. I use this same ItemChoice class with ComboBoxes and ListBoxes and it works fine. What am I doing wrong?
Also, in my RadMenuItem.Click handler, how do I get a reference to the ItemChoice that generated the RadMenuItem? It's not at all clear to me from the properties that are available in that class.
Tony