1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-11-06 12:04:39 +00:00
6502bench/CommonWPF
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
..
Properties
CommonWPF.csproj Restore selection and top position after change 2019-06-10 15:46:35 -07:00
InverseBooleanConverter.cs
MultiKeyInputGesture.cs
WPFExtensions.cs Restore selection and top position after change 2019-06-10 15:46:35 -07:00