Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Listbox : UI virtualization and grouping

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 01-10-2006   #1 (permalink)
Raphaël
Guest


 

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
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy to get handle from listbox. How to get listbox from handle? IMAFriend .NET General 0 03-27-2008 08:31 PM
Listbox Anatoli PowerShell 7 12-04-2007 04:24 AM
Task Bar Grouping not working, box is checked, 11 windows, no grouping...HELP! TIA ABDJCJ Vista General 0 08-31-2007 12:50 AM
Program virtualization vs. installer virtualization Roof Fiddler Vista General 1 09-21-2006 09:25 AM
UI Virtualization vs Grouping Pascal Bourque Avalon 1 04-25-2006 03:22 PM


Vistax64.com 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 2005-2008

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 47 48 49 50 51