Would you consider using a ListBox, and just swapping between two ItemsPanel 
templates? One a StackPanel (the default) and one a WrapPanel?

I've just never done that at runtime...


From: [email protected] [mailto:[email protected]] On 
Behalf Of Greg Keogh
Sent: Saturday, 16 June 2012 12:53 PM
To: 'ozWPF'
Subject: Address Cards style display

Folks, I have to do something every similar to Outlook 2007's Contacts screen 
where you can switch between the "Phone List" view and the "Address Cards" 
view. The former is easy as I can just use a DataGrid. The latter has me 
puzzled because I can't figure out how get the "Address Cards" view with 
minimum coding suffering.

The Outlook card view is more fancy than I need, as it has columns that scroll 
horizontally. I would be happy to have the "cards" all be the same size and 
simply wrap and scroll vertically (they way image thumbnails appear in Windows 
Explorer).

I could use a WrapPanel as the parent and fill its children with a set of user 
controls that look like "cards". However, I don't want to start writing tons of 
procedural code to do this when there might be some WPF binding or template 
tricks that I haven't thought of that would ease the burden. I thought I'd ask 
here first for suggestions before I start coding.

Cheers,
Greg


_______________________________________________
ozwpf mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf

Reply via email to