在wpf中以horizantal方式在listview中添加图像 [英] adding images in listview in horizantal way in wpf
本文介绍了在wpf中以horizantal方式在listview中添加图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想以流行的方式在listview中添加图片...
解决方案
你可以这样做:
< ListView >
< ListView.ItemsPanel >
< ItemsPanelTemplate < span class =code-keyword>>
< StackPanel 方向 = 水平 / >
< / ItemsPanelTemplate >
< / ListView.ItemsPanel >
< / ListView >
带有水平排列项目的WPF ListView? [ ^ ]
WPF中的ListView [ ^ ]
WPF并将文本包装在ListView的元素内 [ ^ ]
整体,
使用< stackpanel orientation =Horizontal>< / stackpanel>或
< wrappanel orientation =水平/>根据您的需要。
希望它有所帮助!
I want to add images in listview in horizantal manner...
解决方案
You can do it like so:
<ListView> <ListView.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Horizontal"/> </ItemsPanelTemplate> </ListView.ItemsPanel> </ListView>
WPF ListView with horizontal arrangement of items?[^]
ListView in WPF[^]
WPF and wrapping text inside elements of a ListView[^]
overall,
either use<stackpanel orientation="Horizontal"></stackpanel>or
<wrappanel orientation="Horizontal" />according to your need.
Hope it helps!
这篇关于在wpf中以horizantal方式在listview中添加图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文