There seems to be a performance degradation when an items collection control is decorated with a ScrollViewer. In the particular application I am working on, there seems to be a big hit to the application when I decorate a VirtualizingStackPanel with a ScrollViewer. I am trying to load up 250 items in this particular container with the hopes that the user can scroll through all 250 of them. Can somebody shed some light on the internals of ScrollViewer and why its inclusion can slow down the initial load of the application?
<ScrollViewer
HorizontalScrollBarVisibility="Auto"
VerticalScrollBarVisibility="Auto"
Visibility= "Visible">
<ListView ItemsSource="{Binding EmployeeAccounts}">
<ListView.ItemsPanel >
<ItemsPanelTemplate>
<VirtualizingStackPanel />
</ItemsPanelTemplate>
</ListView.ItemsPanel>
</ListView>
</ScrollViewer>
Thanks