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.

Re: WPF Skinning: Skinning derived controls? 80 80

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.