从ScrollViewer内部的几个GridView准备Windows 8 XAML HubPages是一种好方法吗? [英] 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:
推荐答案
我认为不是. GridView本身已经具有ScrollViewer,因此多个视图没有意义.我会尝试将单个GridView与 GroupStyleSelector / ItemContainerStyleSelector / ItemTemplateSelector 实现和DataTemplates来定义每个项目.如果将GridView绑定到某些组或其他面板以定义内容,则动态性较差的版本可能只是Style设置为HorizontalScrollViewerStyle的ScrollViewer,水平StackPanel和一些VariableSizedWrapGrids.
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).
这篇关于从ScrollViewer内部的几个GridView准备Windows 8 XAML HubPages是一种好方法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!