void FrameInfo_OnSelectedTreeNodeChanged(Data.Frame frame, BaseTreeNode node) { if (node is EventNode && frame is EventFrame) { ThreadView.FocusOn(frame as EventFrame, node as EventNode); } }
void frameTabs_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (frameTabs.SelectedItem is CloseableTabItem) { var dataContext = (frameTabs.SelectedItem as CloseableTabItem).DataContext; if (dataContext is Data.EventFrame) { Data.EventFrame frame = dataContext as Data.EventFrame; ThreadView.FocusOn(frame, null); } } }