I have a disabled CheckBox that I want to change the Opacity through a Style when IsChecked is True.
Issue: Opacity is not changing.
<Style TargetType="{x:Type CheckBox}">
<Setter Property="IsChecked"
Value="False" />
<Style.Triggers>
<Trigger Property="IsChecked"
Value="True">
<Setter Property="CheckBox.Opacity"
Value="1.0" />
</Trigger>
</Style.Triggers>
</Style>
<CheckBox IsChecked="{Binding IsChecked, Mode=OneWay}" IsEnabled="False"/>
Aucun commentaire:
Enregistrer un commentaire