If you want to apply a Style
to a control, then you have to apply the Style
to that control (which you haven't done in the code example that you have provided). You have two choices here... either try this (wherever you use the control):
<local:MyControl Style="{StaticResource MyStyle}" />
Or define your Style
like this, which will affect all instances of your control within scope:
<Style TargetType="ContentControl">
<Setter Property="Foreground" Value="{DynamicResource ForegroundBrush}" />
<Setter Property="Background" Value="{DynamicResource BackgroundBrush}" />
</Style>