开发者

WPF: change DataTemplate in resources from code

开发者 https://www.devze.com 2023-03-09 10:55 出处:网络
How can I change properties of some cont开发者_开发百科rols in DataTemplate that placed in resource 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

精彩评论

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