如何在水平面列表框中重复项目? [英] How to repeat items in the horizontal surface list box?

查看:46
本文介绍了如何在水平面列表框中重复项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 您好,

我正在使用surfacelistbox控件。我可以 将项目绑定到它并以水平方式加载项目。如何重复水平surfacelistbox中的项目?

I am using surfacelistbox control.I can  bind items to it and loading items in horizontal manner. How to repeat the items in the horizontal surfacelistbox?

推荐答案

您好

  您必须将ItemsPanelTemplate设置为水平StackPanel

  You have to set the ItemsPanelTemplate to a horizontal StackPanel

<s:SurfaceListBox>
	<s:SurfaceListBox.ItemsPanelTemplate>
		<ItemsPanelTemplate>
			<StackPanel Orientation="Horizontal"/>
		</ItemsPanelTemplate>
	</s:SurfaceListBox.ItemsPanelTemplate>
</s:SurfaceListBox>


hth

hth


这篇关于如何在水平面列表框中重复项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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