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

旧街凉风 提交于 2019-12-25 02:59:29

问题


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



来源:https://stackoverflow.com/questions/12133725/is-preparing-windows-8-xaml-hubpages-from-several-gridviews-inside-scrollviewer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!