mardi 28 juin 2016

Making CheckBox Appear Enabled

How would I go about making a disabled checkbox appear as though it is enabled. I have tried setting the opacity, foreground, background, and masks, but to no avail:

<Style x:Key="CheckBoxDisplay" TargetType="CheckBox">
    <Style.Triggers>
        <Trigger Property="IsEnabled" Value="False">
            <Setter Property="Opacity" Value="1"></Setter>
            <Setter Property="Foreground" Value="Blue"></Setter>
            <Setter Property="Background" Value="Blue"></Setter>
        </Trigger>
    </Style.Triggers>
</Style>

I could easily just give the checkboxes an event to disallow people to change it's state by just changing it back, but that seems like cheating.




Aucun commentaire:

Enregistrer un commentaire