Questions tagged [ui-virtualization]

UI virtualization is a technique for improving the performance of user interfaces which means the visual item generation is deferred until the item is visible.

UI virtualization helps to improve application performance when displaying large datasets.

UI virtualization should not be confused with .

References:

UI virtualization in WPF

85 questions
34
votes
3 answers

why setting ScrollViewer.CanContentScroll to false disable virtualization

As most WPF developers know, setting ScrollViewer.CanContentScroll to false will disable virtualization; but I'd like to know how it works, because I try to enable virtualization while setting ScrollViewer.CanContentScroll to false.
Park Wu
  • 341
  • 1
  • 3
  • 3
16
votes
3 answers

WPF Performance: Displaying thousands of Paths / Shapes on a Canvas

I'm currently developing a visualization tool that draws WPF shapes such as paths, ellipses etc. on a Canvas. I've already implemented a virtualized approach where Shapes are being destroyed and created on the fly depending on their visibility.…
kitsune
  • 11,098
  • 13
  • 54
  • 77
13
votes
2 answers

Is there a (good/free) VirtualizingWrapPanel available for WPF?

I've found a couple of alternatives, this CodePlex project and this commercial one, but the former is extremely inefficient in my testing, and the latter, well, costs $$. I've also found this implementation, but it's not so much a WrapPanel as a…
devios1
  • 33,997
  • 43
  • 149
  • 241
13
votes
1 answer

Resources and guides to UI virtualization in WPF

UI Virtualization is an awkward terminology that describes WPF UI controls that load and and dispose child elements on demand (based on their visibility) to reduce memory footprint. ListBox and ListView use a class called VirtualizingStackPanel by…
kitsune
  • 11,098
  • 13
  • 54
  • 77
10
votes
1 answer

Difference between WPF DataGrid's EnableRowVirtualization and VirtualizingStackPanel.IsVirtualizing properties

There is almost no information out there about the impact of setting; VirtualizingStackPanel.IsVirtualizing="True" and EnableRowVirtualization="True" EnableColumnVirtualization="True". Can someone clarify what the difference is? Also, as an…
Julius
  • 675
  • 1
  • 8
  • 24
9
votes
1 answer

How to bind IsSelected in a ListView for non-visible (virtualized) items

I need to deal with a large amount of data in a WPF application. I have bound the large collection to a ListView and I'm using the ItemContainerStyle to bind the list item's IsSelected property with my object's IsSelected property, so that when the…
Ove
  • 5,917
  • 2
  • 37
  • 63
7
votes
1 answer

Improve performance for huge ListBox in StackPanel?

I am using a StackPanel to layout several controls vertically (ie, Title, sub titles, listbox, separator, listbox, etc). The StackPanel is a child of a ScrollViewer to ensure its content is always scrollable. One of the controls in the StackPanel is…
jayars
  • 1,209
  • 2
  • 13
  • 22
6
votes
2 answers

WPF : TreeView virtualization not working

What can stop a TreeView from virtualizing if the TreeView is set up as follows?
Aran Mulholland
  • 22,728
  • 23
  • 129
  • 222
5
votes
1 answer

DataGrid WPF Virtualization and Command CanExecute

I'm working on a WPF application with framework .NET 4.0 I have a problem with a DataGrid : every line got 2 commands : public ICommand MoveUpOrderPipeCommand { get { if (_moveUpOrderPipeCommand == null) { …
Tan
  • 121
  • 6
5
votes
2 answers

ISupportIncrementalLoading only fires once

I'm trying to create a Win8 Metro reference app for virtualized lists. In doing some (very sparse) reading, I've found that the recommended way of supporting this is through the ISupportIncrementalLoading interface. I'm having a problem with my…
Robaticus
  • 22,087
  • 5
  • 52
  • 63
4
votes
1 answer

How to avoid freezing in VirtualizingStackPanel.MeasureOverride in grouping virtualized ListView?

When ListView is grouped and ScrollViewer.CanContentScroll="True" ScrollViewer.VerticalScrollBarVisibility="Visible" VirtualizingPanel.IsVirtualizing="True" …
char m
  • 6,390
  • 14
  • 58
  • 96
4
votes
0 answers

Can setting MinHeight of a WPF control be a workaround for failing VirtualizingStackPanel.ExtendViewport?

And if it is, what control would be the best bet? DataGrid that has the virtualization or something else? This happens very very rarely so trial and error is not an option. Portion of my xaml and converter used is in the end. This happens sometimes…
char m
  • 6,390
  • 14
  • 58
  • 96
4
votes
1 answer

WPF Virtualized TreeView with different orientations within doesn't virtualize?

I have a TreeView in XAML with multiple layers. Using this solution I can get a XAML-configured look for each of the different layers, and confirmed that it is UI virtualizing. However, when I switch a particular layer's VirtualizingStackPanel to…
Matt Thomas
  • 3,697
  • 2
  • 23
  • 41
4
votes
1 answer

Why does my WPF ListView/GridView not virtualize?

I have performance problem with my listview/gridview. I traced it down to the view not being virtualized. I removed all business critical code and was left with the following XAML.
JK82
  • 355
  • 1
  • 10
4
votes
1 answer

How to force ItemContainerGenerator to generate container for the item or How to scroll TreeView to expanded node when UI virtualization is enabled?

TreeView doesn't have ScrollIntoView() method The only way is to call TreeVewItem.BringIntoView() for the corresponding data item container. But if node is invisible and no container is generated yet,…
Pavel Voronin
  • 11,811
  • 6
  • 54
  • 113
1
2 3 4 5 6