[UWP]折叠控件在VaribleSizeWrapGrid中不起作用? [英] [UWP]Collapsing control is not working in VaribleSizeWrapGrid ?

查看:61
本文介绍了[UWP]折叠控件在VaribleSizeWrapGrid中不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


通常,当我们折叠控件时,控件的空间对UI来说太隐藏了。在VaribleSizeWrapGrid中折叠的控件对UI是隐藏的,但是它的空间不会被隐藏。由于这个UI看起来很丑陋和乱码。


有没有办法克服这个问题?要求:当重新调整窗口大小时,控件应自动重新对齐,动态折叠后控件也应自动重新对齐,并且其中的空间也是隐藏的。


请帮助..

解决方案

嗨Sree2017,


欢迎
到开发通用Windows应用论坛!


请阅读粘贴帖子,尤其是

发布指南:主题行标签

Windows 10 SDK和工具的已知问题 
 请记得添加标签自己称号。



这是设计的。您可以看到Matt Small对此的解释
thread
" listpresenter为每个元素保留一个点,无论该元素的内容如何。"。因此,如果您不希望此控件占用空间,则需要将其删除。


最好的问候,


Xavier Eoro


Hi ,

Normally when we collapse a control , then the space for the control too hidden from UI . The control which is collapsed inside a VaribleSizeWrapGrid is hidden from UI , but  the space for it not getting hidden. Due to this UI looks ugly and garbled.

Is there any way to overcome the issue ? Requirement: The controls  should be automatically  re-aligned when re-size the window and also the control when dynamically collapsed  the space for it  also hidden.

Please help ..

解决方案

Hi Sree2017,

Welcome to the Developing Universal Windows apps forum!

Please read the sticky posts, especially the Guide to posting: subject line tags and Known Issues for Windows 10 SDK and Tools  and please remember to add tag to title by yourself.

It’s by design. You could see Matt Small’s explanation on this thread "The listpresenter reserves a spot for every element, regardless of the content of that element.". So, if you don’t want this control to take up room, you would need to remove it.

Best Regards,

Xavier Eoro


这篇关于[UWP]折叠控件在VaribleSizeWrapGrid中不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆