mirror of
https://github.com/fadden/6502bench.git
synced 2024-11-26 21:49:45 +00:00
f3f4c44633
In WinForms, if you want a virtual ListView, you set the "virtual" property and define a couple of callbacks. In WPF, there are separate notions of "UI virtualization" and "data virtualization". The former is done automatically (usually) by the ListView. The latter requires creating an implementation of IList, and relies on behavior that I'm having trouble finding in official documentation. Yay WPF. This splits the source-generation stuff out into DisplayListGen, leaving DisplayList as a list of stuff to display that can be bound to WPF as a ListView ItemsSource. The DisplayList instance will have a hook back into DisplayListGen to perform the on-demand string rendering. (For now it's just generating test patterns.) |
||
---|---|---|
.. | ||
DataFileLoadIssue.xaml | ||
DataFileLoadIssue.xaml.cs | ||
DiscardChanges.xaml | ||
DiscardChanges.xaml.cs | ||
MainWindow.xaml | ||
MainWindow.xaml.cs | ||
ProjectLoadIssue.xaml | ||
ProjectLoadIssue.xaml.cs |