954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

WPF Skinning: Skinning derived controls?

Hi everyone,

I'm developing a WPF application for work in C# (.NET 4.0), and I've got a skins manager kind-of working. The only thing is, styles defined in my .xaml files are only applied to elements with the same classname, and don't cascade down to derived elements. Is there any way to make styles automatically cascade down to derived elements?

Thanks, Lee.

lee.j.baxter
Junior Poster in Training
55 posts since Feb 2010
Reputation Points: 8
Solved Threads: 2
 

You should be able to set the style property of the control itself. Bind it to the style you have written and you should be good to go. As you mentioned a skinning manager, make sure you bind this dynamically.

Ketsuekiame
Master Poster
752 posts since May 2010
Reputation Points: 349
Solved Threads: 107
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: