10
If the Desktop Color is changed while the element’s application is running, the element keeps its original color:
<Button>
<Button.Background>
<SolidColorBrush Color="{StaticResource {x:Static SystemColors.DesktopColorKey}}" />
</Button.Background>
Hello
</Button>
On the other hand, if the element’s color is set using a DynamicResource, it changes when the Desktop Color changes:
<Button>
<Button.Background>
<SolidColorBrush Color="{DynamicResource {x:Static SystemColors.DesktopColorKey}}" />
</Button.Background>
Hello
</Button>