开发者

WPF Bound List To Columned Control

Morning folks,

I'm still trying to get my head around databinding in WPF and so I'm having a bit of a problem working out how to solve this issue: I have a datatemplate for a button that I use to display information from a class I have set up, and I've been using a ListView Itemsource to pass in the list of these class objects which is all working fine, but I what I want is to pass in this list of 开发者_Go百科objects to one control and have 3 columns of buttons displayed per row (the order etc doesnt matter, all button are the same except content fields)

Does that make sense?


Use a UniformGrid:

<UniformGrid Columns="3"> ... your items ... </UniformGrid>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜