In RC0, code that was previously working now fails.
I have a RadMenu with RadMenuItems bound to a Dictionary<int,string> displaying the dictionary 'Value' in the header.
In the click event, we get the corresponding 'Key' from the selected item.
In RC0, the following selectedItem is always null.
Has this changed between SLB2 and RC0?
Kind Regards,
Paul Chapman
I have a RadMenu with RadMenuItems bound to a Dictionary<int,string> displaying the dictionary 'Value' in the header.
In the click event, we get the corresponding 'Key' from the selected item.
In RC0, the following selectedItem is always null.
private void nodesItem_Click(object sender, RoutedEventArgs e) |
{ |
var selectedItem = e.OriginalSource as RadMenuItem; |
if (selectedItem != null) |
{ |
var data = (KeyValuePair<int, string>)selectedItem.DataContext; |
var nodeSummary = new NodeSummary(data.Key); |
//do stuff... |
} |
} |
Has this changed between SLB2 and RC0?
Kind Regards,
Paul Chapman