开发者

WPF: change DataTemplate in resources from code

How can I change properties of some cont开发者_开发百科rols in DataTemplate that placed in resource from code? I use .NET 3.5, so DataTemplate doesn't have Template property.


Take a look at DataTemplateSelectors

--Edit--

I'm sorry I did not understand the question at first, I think the best way would be to write an extra template, that looks the way you want to modify the other one, find it and assign it to the list control.

Here is a little example

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜