Skip to content

Instantly share code, notes, and snippets.



Created Jul 30, 2019
What would you like to do?
<Style TargetType="Button" x:Key="CellStyle">
<Setter Property="BorderThickness" Value="2"/>
<Setter Property="BorderBrush" Value="DarkGray" />
<Setter Property="FontSize" Value="65" />
<DataTrigger Binding="{Binding GameActive}" Value="True">
<Setter Property="Background" Value="White"/>
<Setter Property="IsEnabled" Value="True"/>
<DataTrigger Binding="{Binding GameActive}" Value="False">
<Setter Property="Background" Value="LightGray"/>
<Setter Property="IsEnabled" Value="False"/>
<Setter Property="Foreground" Value="Black"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment