1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-11-04 15:05:03 +00:00
6502bench/SourceGenWPF/ProjWin
Andy McFadden 9c8afab2ea Restore selection and top position after change
Restoring the selection works pretty much like it used to, though
I'm capping the total size of the selection because it goes into
stupid-slow mode if you have too many elements.

Getting the item that is at the top of the ListView is astoundingly
obscure, due to the ListView's extreme generality.  I make a
simplifying assumption -- that we're using a VSP -- which allows us
to use a simple vertical offset once we've dug the appropriate
object out of the visual tree.  (The alternative is to walk through
the list of items and see what's on screen, or perform a hit test
calculation in the upper left corner.)  Yay WPF.
2019-06-10 15:46:35 -07:00
..
CodeListItemStyle.xaml
DataFileLoadIssue.xaml
DataFileLoadIssue.xaml.cs
DiscardChanges.xaml
DiscardChanges.xaml.cs
MainWindow.xaml Restore selection and top position after change 2019-06-10 15:46:35 -07:00
MainWindow.xaml.cs Restore selection and top position after change 2019-06-10 15:46:35 -07:00
ProjectLoadIssue.xaml
ProjectLoadIssue.xaml.cs