This question is locked. New answers and comments are not allowed.
Hi all,
I am trying to implement MVVM, and are having issues with moving LoadOnDemand to my ViewModel using triggers and RelayCommands, I have the event firing and all,
but as it turns out it is possible to expand a node without having it selected, thus breaking the pattern, since the onLoad animation will continue to spin.
If I instead do this:
private void HierarchyTreeControl_LoadOnDemand(object sender, Telerik.Windows.RadRoutedEventArgs e){
RadTreeViewItem clickedItem = null;
clickedItem = e.OriginalSource as RadTreeViewItem;if (clickedItem != null) {
...do load logic
in the code behind file I have access to the expanding item (clickedItem). What am I missing?