How to set the default style for a type in code-behind e.g. for:
<ScaleTransform x:Key="scaler" ScaleX="1.25" ScaleY="1.25" />
<Style TargetType="{x:Type ToolTip}">
<Setter Property="LayoutTransform" Value="{DynamicResource scaler}"/>
</Style>
I need to set the style for the tooltip in code-behind instead of in the xaml markup.