阅读背景:

WPF列表中每个项目的不同项目模板?

来源:互联网 

I have many items inside a list control. I want each item to have a different item template depending on the type of the item. So the first item in the list is a ObjectA type and so I want it to be rendered with ItemTemplateA. Second item is a ObjectB type and so I want it to have ItemTemplateB for rendering. At the moment I can only use the ItemTemplate setting to define one template for them all. Any way to achieve this?I have many items inside a list control. I want




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: