91 questions
0
votes
1
answer
142
views
WPF - Virtualizing Tree View - SelectedItem selection desappearing after item is selected through a Custom Search Box
I have a custom tree view user control that is using a Virtualizing Stack Panel since i have to display ~8000 items. The tree view also lives in a groupbox with custom SearchBox user control that ...
0
votes
1
answer
371
views
WinUI 3 - Programmatic Scroll to Virtualized Item in ItemsControl (not ListView)
I'm making a custom ItemsControl subclass with a fairly typical template:
<Style TargetType="local:MyControl">
<Setter Property="ItemsPanel">
<Setter....
1
vote
1
answer
139
views
DataTemplate inside ListView (with VirtualizingStackPanel) causing StackOverflow
I have a data type, Metadata, that contains a file path to either a video or an image. I'm attempting to use a DataTemplate to display that data type. There's going to be thousands of these objects, ...
0
votes
0
answers
26
views
Tooltip flickers when an off screen Item of a ListBox updated (VirtualizingStackPanel, ICollectionView)
I have a collection of contacts. Each contact has a Status indicator. Using the VirtualizingStackPanel ItemPanel, when viewing item 1-10, I am expecting any update on, say, item#100 would not cause ...
0
votes
2
answers
143
views
How to make listbox placed in a large canvas in wpf more performant?
I have a custom UserControl looks like this:
The brown boxes are ListBoxItems in a ListBox control and there are many such items. Each item again contains a lot of other controls, like images, text ...
1
vote
1
answer
1k
views
WPF ListBox VirtualizingPanel
I need some advice. I am trying to create a ListBox with an expanded detail item. I have also created VirtualizingTilePanel but unfortunately items in the ListBox do not move so that the detail of the ...
0
votes
1
answer
270
views
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 ...
0
votes
0
answers
96
views
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 ...
0
votes
1
answer
354
views
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.
...
0
votes
0
answers
294
views
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 ...
0
votes
1
answer
353
views
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 ...
0
votes
1
answer
525
views
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:
<ItemsControl Grid.Row="1" Name="ConversationItemsControl" VirtualizingStackPanel....
1
vote
0
answers
222
views
KB4013198 Causes StackOverflowException in VirtualizingStackPanel
I have a customer who is on Windows 10 v1511 (i.e., not the Anniversary Update). After installing update KB4013198, my WPF application now crashes periodically when scrolling a ListBox employing a ...
0
votes
1
answer
299
views
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.
<sdk:DataGrid VirtualizingStackPanel....
2
votes
1
answer
925
views
WPF - VirtualizingStackPanel requests all items when going into editing mode in DataGrid
I am using a DataGrid with CellEditingTemplates. As ItemsSource a data virtualized collection is used (the AlphaChiTech solution), which only fetches pages of a size of 100 items at a time on demand.
...
0
votes
1
answer
493
views
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
104
views
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 ...
0
votes
1
answer
172
views
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 ...
1
vote
0
answers
403
views
Scroll the virtualized items control to the bottom
How to scroll the virtualized items control to the bottom when it initially loading?
i have tried this, scroll bar jumps while loading. initially its in middle position and then jumps bottom.. is ...
2
votes
0
answers
150
views
Visual defect in VirtualizingStackPanel in FlipView WP 8.1
In my project i am working with FlipView with collection of images. For better performance i am using VirtualizingStackPanel and it working fine, but i noticed strange behavior of last item of ...
0
votes
0
answers
270
views
Extra space in ListBox with VirtualizingStackPanel
I am using a ListBox with ItemsPanel set to VirtualizingStackPanel.
<ListBox ItemsSource="{Binding Items}"
ScrollViewer.VerticalScrollBarVisibility="Visible">
...
8
votes
1
answer
9k
views
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 ...
0
votes
1
answer
402
views
VirtualizingStackPanel is fast only when fresh. How can I fix it?
When I create ListBox with virtualization enabled and then update all its items appearance it works very fast. But when i slowly scroll down all items in ListBox and then update all items appearance ...
0
votes
1
answer
1k
views
Couldn't get selected items correctly if setting ListView ItemsContainer as VirtualizationStackPanel
I set 'VirtualizingStackPanel.IsVirtualizing' to true and 'VirtualizingStackPanel.VirtualizationMode' to 'Recycling', because the items in my ListView are too many. The SelectionMode of the ListView ...
4
votes
4
answers
5k
views
VirtualizingStackPanel with Virtualized List
I am developing an application that is supposed to display a fairly large amount of items that are loaded from elsewhere (say, a database) in a list/grid-like thing.
As having all the items in memory ...
0
votes
0
answers
216
views
What is the use of Type.InvokeMember
Iam working in a WPF Application and in one place I had to use this piece of code to get the reference to a VirtualizingStackPanel.
Following is the piece of code,
VirtualizingStackPanel vsp = (...
5
votes
2
answers
157
views
How can I increase the range of VirtualizingStackPanel in WP8?
This questions is mainly for Windows Phone devs, but I guess any XAML technology is applicable.
My VirtualizingStackPanel works great and I can see the improvements in memory usage. However, the ...
18
votes
1
answer
2k
views
Binding to data breaking on VirtualizingStackPanel
First of all, a disclaimer, I'm working with .net 3.5's virtualizingstackpanel. If you get different behavior in future versions let me know. It's relatively simple to set up a test case with ...
7
votes
1
answer
6k
views
VirtualizingPanel in DataGrid
I've started exploring the Data and UI virtualization features in WPF recently and stumbled upon something strange.
I created a DataGrid's with Virtualizing enabled and filled it with a list with 1,...
5
votes
2
answers
6k
views
Using virtualization for WPF DataGrid inside ScrollViewer
I know that DataGrid supports virtualization, so it creates grid cells only for visible rows. However, this seems to work only if the DataGrid is constrained in size.
In my scenario, a DataGrid is ...
1
vote
1
answer
781
views
Is it possible to use VirtualizingStackPanel in a FlipView?
Currently my FlipView allows the user to select multiple pictures from the local Pictures folder and then display the selected images in FlipView. However it will only work if the user selects a small ...
4
votes
1
answer
1k
views
ListBox WPF- VirtualizingStackPanel with two rows, like wrappanel
My listBox:
<ListBox VirtualizingStackPanel.IsVirtualizing="True" VirtualizingStackPanel.VirtualizationMode="Recycling" Name="lst" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ...
0
votes
2
answers
2k
views
wpf how to call measure on all visible containers in virtualizing stackpanel of scrollviewer
Goal: To Remeasure and then redraw only those signalgraphs that are in view in the virtualizing stack panel of a scrollviewer.
Current build:
Currently I have a dependency property (...
0
votes
2
answers
1k
views
Alternative of VirtualizingStackPanel.CacheSize in .Net 4.0
What are the factors that virtualizingstackpanel consider when it decides visualizing items around the visible item?
Ex: Having a listview, when viewing item 7, item 6& 8 will be visualized too ...
2
votes
0
answers
617
views
VirtualizingStackPanel with IsPixelBased=true and correct thumb sizes?
I'm using an itemscontrol to hold a number of controls of varying size. I decided to enable virtualizing due to the number of controls I need to display (it was taking a second or so to "Load" the ...
1
vote
1
answer
2k
views
GridView and Virtualizing Stackpanel to display a grid of items
I am trying to create a grid containing elements such as
| 1 | 4 | 7 |
| 2 | 5 | 8 | ===> extend
| 3 | 6 | 9 |
Since the data is very large, I need to use UI virtualization and what I see in most ...
0
votes
1
answer
350
views
Height of ListBoxItem in VirtualizingStackPanel
I'm developing an app where the entire UI is sized by percentage. Therefore the height of my ListBoxItems needs to be controlled by that too. But i'm having some problems getting it to work.
...
0
votes
0
answers
551
views
Detecting Item visibility in a VirtualizingStackPanel for lazy loading images
Here is my scenario:
I have a Gridview that shows data retrieved from a network service. The number of data may be quite large. So, the VirtualizingStackPanel is used to display the content. Some of ...
0
votes
1
answer
436
views
how to get the first item of a wpf combobox shown in the dropdown?
I have a big list (~10000 items) inside a ComboBox, that uses the VirtualizingStackPanel class. The scrolling performance is good, anyway I like to know how to identify the top item shown in the GUI - ...
1
vote
1
answer
217
views
VirtualizingStackPanel Loses images when scrolled off screen
I have a GridView that has a VirtualizingStackPanel as the ItemsPanel. The items are bound to a collection of my model objects on my viewModel. The specific properties that I am binding to in the ...
0
votes
1
answer
357
views
VirtualizingStackPanel not aligning menu items vertical on applying theme
Before applying WPF theme - BureauBlue.xaml theme, I can see menu items aligning vertically with the below code:
<Menu.ItemsPanel>
<ItemsPanelTemplate>
<...
1
vote
1
answer
306
views
WP7 - VirtualizingStackPanel bottom margin does not work
I have VirtualizingStackPanel in ListBox ItemsPanel. If I set Margin="0,0,0,50" then margin is not showed but if I set left margin (or top or right) Margin="50,0,0,0" then margin works correct.
If I ...
0
votes
0
answers
728
views
WPF Virtualized ItemsControl ScrollChanged behavior changed in .Net 4.5?
One of our applications contains a UserControl where we have multiple layers of ItemsControls that are kept in sync when scrolling. The ItemsControl is virtualized. The application is targetting .Net ...
1
vote
0
answers
109
views
How to decorate VirtualizingStackPanel
Is there a simple way to decorate VirtualizingStackPanel? If I put VirtualizingStackPanel directly in ScrollViewer, virtualization will work. My goal is to override the Decorator.OnRender() method and ...
34
votes
5
answers
8k
views
Scrolling in virtualized WPF TreeView is very unstable
If virtualizing is enabled in TreeView with items having various sizes, multiple problems appear:
Vertical scroll bar changes its size randomly and doesn't remember sizes of elements after viewing the ...
0
votes
1
answer
80
views
How to make Listbox to not remember its last view
I have a Listbox that bind to an ObservableCollection. In my app, I need to clear this collection in OnNavigatedFrom and read it in OnNavigatedTo to reduced memory.
However, I see that when using ...
2
votes
1
answer
695
views
How to keep Virtualizing when style ControlTemplate of ListBox?
I read that when styling incorrectly, ListBox will lose its virtualization. As notacat's answer in this question, his solution is OK.
I realize that whenever I put ItemsPresenter in another container,...
1
vote
3
answers
735
views
WP7 Listbox how UI virtualization work
I'm using ListBox which has VirtualizingStackPanel, which is said to support UI virtualizing by default.
However, when I set my listStudent (of type ObservableCollection, and have 5 Students in it) ...
0
votes
1
answer
344
views
WP7 Listbox how to show load more item
I know that the Windows Phone 7 ListBox use VirtualizingStackPanel by default to optimize memory.
However, when I add more items to the view model, the listbox doesnot show those new items. I must ...
1
vote
0
answers
225
views
Inheriting VirtualizingStackPanel, InternalChildren.Count returns zero
I implement some additional logic for elements arrangement.
I override MeasureOverride and ArrangeOverride. If I inherit from StackPanel everything works. What is not the case for ...