Questions tagged [virtualizingstackpanel]

Arranges and virtualizes content on a single line that is oriented either horizontally or vertically.

The standard layout system creates item containers and computes layout for each item associated with a list control. The word "virtualize" refers to a technique by which a subset of user interface (UI) elements are generated from a larger number of data items based on which items are visible on-screen. Generating many UI elements when only a few elements might be on the screen can adversely affect the performance of your application. The VirtualizingStackPanel calculates the number of visible items and works with the ItemContainerGenerator from an ItemsControl (such as ListBox or ListView) to create UI elements only for visible items.

88 questions
0
votes
1 answer

ItemsStackPanel extends beyond Grid container for a large source

Update info Ok my apologies I had to review my question and title. But the narrowing of the problem was not easy to track down, despite the several testing we have made. You will find below the new code leading to an unexplained bug, and the older…
Octopus
  • 661
  • 4
  • 21
0
votes
0 answers

Use VirtualizingStackPanel with multiple ListBox inside ScrollViewer

I have multiple ListBoxes below each other inside a ScrollViewer. These listboxes contain a different number of items (the actual number is not known before loading). These listboxes need to be shown like this for UI flow and to get a single…
The Cookies Dog
  • 1,915
  • 2
  • 22
  • 38
0
votes
1 answer

Wpf Xbap TreeView VirtualizingStackPanel bug?

I have a TreeView with VirtualizingStackPanel on. The TreeView has a "Level 1" TreeViewItem, and I bind this TreeViewItem to a 10k items list. Each children is also another TreeViewItem. Virtualization works well, and the performance is great, but…
totomvn
  • 1
  • 1
0
votes
1 answer

How to get seldom happening WPF exception to be reproduced more often?

At this point there will be no minimal reproducible example because I can reproduce this once a day at best and only with a product mainwindow which has thousands of xaml lines in multiple controls. I'm investigating yet another WPF caused crash…
char m
  • 7,840
  • 14
  • 68
  • 117
0
votes
0 answers

wpf virtualizingstackpanel different behavior on different Win10 machines

My WPF application is using VirtualizingStackPanel for ListView. Scrolling this list is working fine on two different machines: my host machine (Windows 10 v1803 build 17134.228) and one virtual machine (Windows 10 v1607 build 14393.2312 ). If I…
Qinitram
  • 1
  • 2
0
votes
1 answer

wpf .net 4.5 Isvirtualizng when grouping updating list wrongly

i am binding a lot of images in listview using following code lvImages.ItemsSource = lstVisualDuplicateImage; following properties used in ListView here is my complete XAML Binding ang Grouping is performed iam using .net 4.5
0
votes
1 answer

Accurate scrollbar control in an ItemsControl with a VirtualizingStackPanel

I have an Itemscontrol using a VirtualizingStackPanel to display a huge (and growing) list of items:
Benni
  • 1,030
  • 2
  • 11
  • 18
0
votes
1 answer

WPF Validation inside UI Virtualized ListBox

I need to do some kind of data validation in a WPF application I am developing As far as I know, when you add ValidatesOnDataErrors=True to the Binding, everytime the Binding is resolved (it can be every time teh value changes, it can be when focus…
Tio Luiso
  • 31
  • 2
0
votes
1 answer

Why VirtualizingStackPanel.IsVirtualizing in silverlight datagrid threw an exception?

i added VirtualizingStackPanel in my datagrid for on-demand load records to get rid of too long loading time taken to display all the records.
jeliey
  • 21
  • 1
  • 1
  • 6
0
votes
1 answer

IsVirtualizingWhenGrouping and TreeView

I have a problem with virtualization in TreeView when grouping objects. In .NET 4.5 was added helpful thing as VirtualizingPanel.IsVirtualizingWhenGrouping, and I am trying to use it in next code:
0
votes
0 answers

Virtualizingstackpanel loses selected value on combobox winrt

I have a simple ListBox with about 500 ListBox item. I have 2 comboboxes on one item. My problem is: When I scroll down I lose all SelectedItem binding data. I have tried to replace the Virtualizingstackpanel to Stackpanel, but than it eats all of…
0
votes
1 answer

VirtualizingStackPanel bottom docking

I'm working on some chat application and using VirtualizingStackPanel. When my message list is scrolled down, I want it to be docked to the bottom of the container. But when I use virtualization there is always some whitespace, because panel docks…
Stash
  • 3
  • 2
0
votes
2 answers

Need to trigger an event when ListBoxItem is clicked in ControlTemplate

I'm overriding the styles of my ListBoxItems with a ControlTemplate, however by doing that, I lost the handler for my ListBoxItem click event. I found a post that was helpful in saying I need to add an event handler in the ControlTemplate, but I…
TheGeekYouNeed
  • 7,509
  • 2
  • 26
  • 43
0
votes
2 answers

How to obtain the panel within a treeview (WPF)

How can one obtain the panel that is used within a TreeView? I've read that by default TreeView uses a VirtualizingStackPanel for this. When I look at a TreeView template, all I see is , which seems to hide the details of what…
0
votes
0 answers

Extra space in ListBox with VirtualizingStackPanel

I am using a ListBox with ItemsPanel set to VirtualizingStackPanel.
Nadia
  • 11
  • 1