Skip to main content

Microsoft Silverlight

Unanswered Question How to tweek toolkit themesRSS Feed

(0)

Huh17
Huh17

Member

Member

6 points

11 Posts

How to tweek toolkit themes

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?

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities