How to set a default style for a code type, for example. 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 tooltip in reverse code and not in xaml markup.
styles wpf code-behind
Alexander Zwitbaum
source share