与水平方向的ItemsControl [英] ItemsControl with horizontal orientation

查看:634
本文介绍了与水平方向的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屋!

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