如何根据其内容增加或减少ScatterViewItem的高度。 [英] How to Increase or Decrease the Height of a ScatterViewItem accrording to its Content.
问题描述
我的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屋!