mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
A model selection set before the SharpTreeView is attached to the visual tree (e.g. AnalyzerTreeViewModel.Analyze selects its node, then the pane is shown) was lost: the ListBox isn't an initialised ItemsControl yet, so the binder's SelectedItems add silently dropped. Nothing re-applied it, so the analyzed row showed unselected and keyboard gestures had no current node. Making SharpTreeView focusable (for first-press Ctrl+A) unmasked this: with the tree itself taking focus instead of delegating to the selected row's container, keyboard handlers fell back to SelectedItem, which was empty. Re-sync on the tree's Loaded event so the selection sticks once the control is ready.pull/3755/head
1 changed files with 13 additions and 1 deletions
Loading…
Reference in new issue