Skip to content

Instantly share code, notes, and snippets.

@jasondown
Created August 3, 2021 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasondown/6f30106a36d55f19d7d09faf512dc08d to your computer and use it in GitHub Desktop.
Save jasondown/6f30106a36d55f19d7d09faf512dc08d to your computer and use it in GitHub Desktop.
<RepeatButton.Style>
<Style TargetType="{x:Type RepeatButton}">
<Style.Triggers>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsEnabled}" Value="True">
<Setter Property="Content">
<Setter.Value>
<Path Data="M 9 0 L 9 10 L 0 5 Z"
Fill="{x:Static SystemColors.ControlTextBrush}"
Stroke="{x:Static SystemColors.ControlTextBrush}" />
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsEnabled}" Value="False">
<Setter Property="Content">
<Setter.Value>
<Path Data="M 9 0 L 9 10 L 0 5 Z"
Fill="{x:Static SystemColors.ControlDarkDarkBrush}"
Stroke="{x:Static SystemColors.ControlDarkDarkBrush}" />
</Setter.Value>
</Setter>
</DataTrigger>
</Style.Triggers>
</Style>
</RepeatButton.Style>
</RepeatButton>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment