I have an application that uses themes to customize the appearance of buttons and other ui controls. The styles use some common colors so they are defined in xaml and referenced with StaticResource:
<ColorAnimation Storyboard.TargetName="LayoutRoot"
Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"
To="{StaticResource AccentColor}"
Duration="00:00:00"/>
Now, i'd like to make AccentColor configurable. The problem is that here i can't just use a DynamicResource because ColorAnimation must be freezable to be used in storyboards.
Is there a workaround for this?