czech_u
czech_u

Reputation: 209

Is preparing Windows 8 XAML HubPages from several GridViews inside ScrollViewer the good approach?

I'd like to get the effect visible on the picture:

Upvotes: 0

Views: 845

Answers (1)

Filip Skakun
Filip Skakun

Reputation: 31724

I don't think it is. A GridView already has a ScrollViewer in itself, so multiple of them does not make sense. I would try to use a single GridView with GroupStyleSelector/ItemContainerStyleSelector/ItemTemplateSelector implementations and DataTemplates to define each item. A less dynamic version might just be a ScrollViewer with Style set to HorizontalScrollViewerStyle, a horizontal StackPanel and a few VariableSizedWrapGrids - if you bind the GridView to some groups or other panels to define the content.

This looks like a good sample based on the description (though the images seem to be missing for me).

Upvotes: 1

Related Questions