-
(Avalonia v11 Preview 6, themed with Material.Avalonia nightly build) I'm building a ListBox in code (F# using Avalonia.FuncUI, but I should be able to use a C# answer). The list box has 1M entries, and performance seems fine with a VirtualizingStackPanel - provided I set The Virtualizing StackPanel is set via a FuncTemplate ListBox.itemsPanel (FuncTemplate<Panel>(fun () -> VirtualizingStackPanel())) But setting Is there a way to set this property when building the UI from code, eg from a Style selector or template (in code) while building the ListBox? Thanks for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Sorry, I meant to ask this in the Avalonia repo! |
Beta Was this translation helpful? Give feedback.
Sorry, I meant to ask this in the Avalonia repo!