RoutedEventArgs changed between beta 2 and RC0. Now it have OrignalSource readonly property (in beta 2 it was read/write Source property).
So now the only way to get original sender is to cast the RoutedEventArgs to RadRoutedEventArgs.
|private void nodesItem_Click(object sender, RoutedEventArgs e)
| RadRoutedEventArgs args = e as RadRoutedEventArgs;
| var selectedItem = args.OriginalSource as RadMenuItem;
| if (selectedItem != null)
| var data = (KeyValuePair<int, string>)selectedItem.DataContext;
| var nodeSummary = new NodeSummary(data.Key);
| //do stuff...
Then Source and OriginalSource properties will be correctly populated.
We will update the Delegate so this problem will be resolved in the future release.
Sorry for the inconvenience.
If you have other question do not hesitate to contact us.
the Telerik team
Check out Telerik Trainer
, the state of the art learning tool for Telerik products.