[UWP]折叠控件在VaribleSizeWrapGrid中不起作用?

编程入门 行业动态 更新时间:2024-10-10 18:25:49
本文介绍了[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 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中不起作用?

本文发布于:2023-11-27 21:18:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639640.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控件   中不   UWP   VaribleSizeWrapGrid

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!