Skip to main content
Home Forums Silverlight Programming Silverlight Controls and Silverlight Toolkit How to tweek toolkit themes
0 replies. Latest Post by Huh17 on November 6, 2009.
(0)
Huh17
Member
6 points
11 Posts
11-06-2009 8:08 PM |
I'm using Implict style manager to dynamically style my controls using the toolkit themes, and all is well. The problem is if I want to do something like put a margin around all of my text boxes using a style on the UserControl.Resources ala...
<Style x:Name="TextBlockStyle" TargetType="TextBlock"> <Setter Property="Margin" Value="5" /> </Style>
It overrides the toolkit theme. I get the default textblock with a margin of 5, not the themed textblock with a margin of 5. I cant just copy the textblock style from the theme and add it to the local resourcedictionary and change the margin there, because I don't know which theme is going to be applied at runtime.
How can I 'adjust' a theme, with out completly overriding it?