Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Listbox : UI virtualization and grouping

 
 
Old 01-10-2006   #1 (permalink)
Raphaël


 
 

Listbox : UI virtualization and grouping

Hello

I just discovered that UI virtualization is incompatible with grouping, and
I ma stuck because of that.

My scenario consists of a flatten images folders arborescence displayed in a
listbox.
I.e. something like this : http://www.xerto.com/images/screen-shot.png
The only difference is that images are grouped according to their folder
(rather than tags) and headers don't have a "roll up" button.
Moreover, inside each group (each folder), images can be sorted, and a
folder can contains an arbitrary number of images.

To do this, I have either a list containing an aggregated images list
(containing images located in each folder) either an aggregated folders list
(containing the flatten folders hierarchy). My first idea was to use the
imageslist with a ListBox, while using the grouping feature from
ItemCollection. Since I already developped a VirtualizingTilesPanel, il would
have been really simple to do.

However, as I feared, grouping items prevents the use of UI virtualization.
a) Do you plan to support UI virtualization with grouping in ListBoxes ?
b) I need a workaround, and I have some ideas but I am not sure whether it
could work or not.

Here are those ideas :
1) Creating a ItemGroupPanel that I could use as the root panel for the
listbox. The idea is to implement IScrollInfo to perform a logicial scrolling
among the groups and the groups children (since the children panels are
virtualizable, they implement IScrollInfo). However, I don't know if I could
enforce the virtualization on the children panels.
2) Binding my listbox to the folders list, with a DataTemplate including a
header and a listbox for images. Then, create a panel that implements
IScrollInfo, same as above
3) Creating a custom control derived from Selector.


Would someone have any advice about this please ? Thanks in advance.
Regards,
Raphaël.

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Easy to get handle from listbox. How to get listbox from handle? .NET General
Listbox PowerShell
Task Bar Grouping not working, box is checked, 11 windows, no grouping...HELP! TIA Vista General
Program virtualization vs. installer virtualization Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46