Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>xamlgeek,</p> <p>The following implicit styles work well for me. I first create some name/keyed styles, using common BasedOn styles whereever possible. Then I simply create the implicit styles BasedOn those named/keyed styles...</p> <pre><code>&lt;Style x:Key="BaseStyle" TargetType="Control"&gt; &lt;Setter Property="FontFamily" Value="{StaticResource FontFamily}" /&gt; &lt;Setter Property="FontSize" Value="{StaticResource FontSize}" /&gt; &lt;Setter Property="Foreground" Value="{StaticResource FontBrush}" /&gt; &lt;/Style&gt; &lt;Style x:Key="BaseStyleCentered" TargetType="Control" BasedOn="{StaticResource BaseStyle}"&gt; &lt;Setter Property="VerticalAlignment" Value="Center" /&gt; &lt;/Style&gt; &lt;Style x:Key="CommonCheckBox" TargetType="CheckBox" BasedOn="{StaticResource BaseStyleCentered}"&gt; &lt;Setter Property="Cursor" Value="Hand" /&gt; &lt;/Style&gt; &lt;Style x:Key="CommonRadioButton" TargetType="RadioButton" BasedOn="{StaticResource BaseStyleCentered}"&gt; &lt;Setter Property="Cursor" Value="Hand" /&gt; &lt;/Style&gt; &lt;Style x:Key="CommonButton" TargetType="Button" BasedOn="{StaticResource BaseStyleCentered}"&gt; &lt;Setter Property="Cursor" Value="Hand" /&gt; &lt;Setter Property="Padding" Value="10,0,10,0" /&gt; &lt;Setter Property="MinWidth" Value="{StaticResource ButtonWidth}" /&gt; &lt;Setter Property="MinHeight" Value="{StaticResource ButtonHeight}" /&gt; &lt;/Style&gt; &lt;Style TargetType="CheckBox" BasedOn="{StaticResource CommonCheckBox}"&gt; &lt;/Style&gt; &lt;Style TargetType="RadioButton" BasedOn="{StaticResource CommonRadioButton}"&gt; &lt;/Style&gt; &lt;Style TargetType="Button" BasedOn="{StaticResource CommonButton}"&gt; &lt;/Style&gt; </code></pre> <p>Good luck,</p> <p>Jim</p> <p>YinYangMe, YinYangMoney and FaceToFaceSoftware</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload