如何根据其内容增加或减少ScatterViewItem的高度。 [英] How to Increase or Decrease the Height of a ScatterViewItem accrording to its Content.

查看:95
本文介绍了如何根据其内容增加或减少ScatterViewItem的高度。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我的Surface应用程序中有一个ScatterView。 ScatterViewItem有一个子元素,它是Expander Control。我们正在代码背后添加项目。现在,我的ScatterViewItem项应该充当扩展器。



是否有可能根据其子内容增加或减少ScatterViewItem的高度(这只是扩展器)?



谢谢。

解决方案

将ScatterViewItem的高度和宽度设置为" ;自动" ;?这有用吗?


或使用绑定但我不确定是否适合与其子属性绑定。(我只用其父元素绑定属性)


Hi,

I have a ScatterView in my Surface Application. The ScatterViewItem has a child element which is an Expander Control. We are adding Items in Code Behind. Now, my ScatterViewItem item should act as an Expander.

Is there any possibility to increase or decrease the height of the ScatterViewItem based on its child content (which is nothing but Expander)?

Thanks.

解决方案

set the ScatterViewItem's Height and Width to "Auto"? Is this work?

or use binding but I'm not sure is that appropriate to bind with its child property.(I only bind property with its parent element)


这篇关于如何根据其内容增加或减少ScatterViewItem的高度。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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