hi,欢迎访问本站!
当前位置: 首页学习笔记正文

WPF-控件-将ListBox条目水平排列

用户投稿 学习笔记 203阅读
<Grid Margin="6"> <ListBox> <!--ItemsPanel--> <ListBox.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Horizontal"></StackPanel> </ItemsPanelTemplate> </ListBox.ItemsPanel> <TextBlock Text="Allan"/> <TextBlock Text="Kevin"/> <TextBlock Text="Drew"/> <TextBlock Text="Timothy"/> </ListBox> </Grid>

转载于:https://www.cnblogs.com/chenyongblog/p/3567606.html

标签:
声明:无特别说明,转载请标明本文来源!
发布评论
正文 取消