Silverlight 3 List box

て烟熏妆下的殇ゞ 提交于 2019-12-24 07:35:04

问题


How to set the orientation of the List box in Silverlight i.e how to display the data horizontally?


回答1:


Modify the ItemsPanel of the ListBox and set it to a StackPanel that's oriented Horizontally:

<ListBox>
    <ListBox.ItemsPanel>
        <ItemsPanelTemplate>
            <StackPanel Orientation="Horizontal"/>
        </ItemsPanelTemplate>
    </ListBox.ItemsPanel>
</ListBox>


来源:https://stackoverflow.com/questions/1165236/silverlight-3-list-box

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!