Style Question
-
I have this in my theme file:
<Style TargetType="TextBlock">
<Setter Property="Foreground" Value="{DynamicResource textForegroundBrush}"/> <Setter Property="FontSize" Value="14"/>
</Style>
Now, in a window I want to add additional settings
<Window.Resources>
<Style x:Key="headerTextStyle" TargetType="TextBox"> <Setter Property="FontSize" Value="24"/> </Style>
</Window.Resources>
Since the theme's style does not have a key, how do I base the window's style off the sstyle in the theme?
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
-
I have this in my theme file:
<Style TargetType="TextBlock">
<Setter Property="Foreground" Value="{DynamicResource textForegroundBrush}"/> <Setter Property="FontSize" Value="14"/>
</Style>
Now, in a window I want to add additional settings
<Window.Resources>
<Style x:Key="headerTextStyle" TargetType="TextBox"> <Setter Property="FontSize" Value="24"/> </Style>
</Window.Resources>
Since the theme's style does not have a key, how do I base the window's style off the sstyle in the theme?
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.
Try:
</pre>
<div class="signature"><hr size="1" color="#63B4FF" noshade="">
<span style="color: rgba(0, 88, 170, 1)">
<cite>"These people looked deep within my soul and assigned me a number based on the order in which I joined."</cite>
<b> - Homer</b>
</span></div></x-turndown> -
Try:
</pre>
<div class="signature"><hr size="1" color="#63B4FF" noshade="">
<span style="color: rgba(0, 88, 170, 1)">
<cite>"These people looked deep within my soul and assigned me a number based on the order in which I joined."</cite>
<b> - Homer</b>
</span></div></x-turndown>Thanks, that did it. I always thought using that would cause the child style to based off WPF's base style
If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.