Here is the scenario:
1) Open Visual Studio 2008, create new project...
2) Select WPF Custom Control Library as the project type
3) Open the Generic.xaml resource dictionary located in the Themes folder
4) Add a simple brush such as:
< SolidColorBrush x:Key="BackgroundBrush" Color="Yellow" / >
5) Change the Background property of the nested Borer Control from
Background="{TemplateBinding Background}"
to
Background="{DynamicResource BackgroundBrush}"
Now when you compile and use this control in any project, the background will NOT be yellow. BUT, if you change the background property to be a StaticResource as such
Background="{StaticResource BackgroundBrush}"
...it will work. Why is this? Why does StaticResource work but not DynamicResource???