简体   繁体   English

UWP-如何制作响应式网格

[英]UWP - How to make Responsive Grid

I want to place items in a panel so that when screen size shrinks the items become visible by going down. 我想将项目放置在面板中,这样当屏幕尺寸缩小时,通过向下查看项目就变得可见。 In short I want to achieve "Float:left" of CSS, or what they do in Bootstrap? 简而言之,我想实现CSS的“ Float:left”,或者它们在Bootstrap中的作用?

anyway of Achieving that? 无论如何做到这一点?

EG of what I want to achieve. 我想要实现的目标。 https://postimg.org/gallery/2p2y7b5tc/ https://postimg.org/gallery/2p2y7b5tc/

As there might be many items so I can't code manually. 由于可能有很多项目,所以我无法手动编码。

You don't need to do anything special to enable this, just use the GridView control, and it will take care of everything 您无需执行任何特殊操作即可启用此功能,只需使用GridView控件即可,它将处理所有事情

Try this sample: https://github.com/TareqAteik/ResponsiveGrid 尝试以下示例: https : //github.com/TareqAteik/ResponsiveGrid

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM