suppose I wish to allow users be able to customize the application interface (for example, change font family or font size, etc.). Default style settings are saved into a stylesheet, registered as a ResourceDictionary in Application.xaml file. Suppose that default Font Family is set to Tahoma
<FontFamily x:Key="FontFamilyDefault">Tahoma</FontFamily>
...
<Style TargetType="{x:Type TextBox}">
<Setter Property="FontFamily" Value="{DynamicResource FontFamilyDefault}"/>
...
</Style>
Suppose now that user can set a Font Family via a ViewModel property (FontFamily). How can I force the dynamic resource FontFamilyDefault to be set to the FontFamily property value? thanks