分组项页面的默认布局是250*250的同等大小的网格布局。
而应用商店的分组是不规则布局,如何实现? 要简单的思路,简单的代码。
Hi,
那个是使用了VariableSizedWrapGrid,用法:
<GridView> <GridView.ItemsPanel> <ItemsPanelTemplate> <VariableSizedWrapGrid /> </ItemsPanelTemplate> </GridView.ItemsPanel> </GridView>
也可以参考:
http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.variablesizedwrapgrid.aspx
商店是使用的分组的VariableSizedWrapGrid,有一些复杂,不过你可以参考这个帖子以及里面给出的sample说的很清楚:
http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/966aa897-1413-46f0-bef7-663de36f9423
sample:
https://skydrive.live.com/redir?resid=3A5CA8204EC61147!35841&authkey=!AAOLlNWZh4K-FkQ
Aaron Xue [MSFT] MSDN Community Support | Feedback to us Get or Request Code Sample from Microsoft Please remember to mark the replies as answers if they help and unmark them if they provide no help.