Is preparing Windows 8 XAML HubPages from several

2019-08-21 17:58发布

问题:

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

回答1:

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).