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
精彩评论