通常,当我们折叠控件时,控件的空间对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 aVaribleSizeWrapGrid 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 Toolsand 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中不起作用?
发布评论