ItemsControl 具有水平方向 [英] ItemsControl with horizontal orientation
本文介绍了ItemsControl 具有水平方向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您知道从 ItemsControl 继承的具有项目水平方向的任何控件吗?
Do you know any controls inherited from the ItemsControl that have horizontal orientation of items?
推荐答案
只需更改用于托管项目的面板:
Simply change the panel used to host the items:
<ItemsControl ...>
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
</ItemsControl>
这篇关于ItemsControl 具有水平方向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文