Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag

BMU-Verlag/c#3_13.cs

Created Jul 30, 2019
Embed
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" />
<Style.Triggers>
<DataTrigger Binding="{Binding GameActive}" Value="True">
<Setter Property="Background" Value="White"/>
<Setter Property="IsEnabled" Value="True"/>
</DataTrigger>
<DataTrigger Binding="{Binding GameActive}" Value="False">
<Setter Property="Background" Value="LightGray"/>
<Setter Property="IsEnabled" Value="False"/>
<Setter Property="Foreground" Value="Black"/>
</DataTrigger>
</Style.Triggers>
</Style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment