mercredi 29 novembre 2017

WPF Set GroupBox opacity to 60 percent if a checkbox is ticked

Is there any way in XAML to bind the opacity of a GroupBox depending on if a checkbox is ticked or not?

For example, I want a GroupBox to be 100% opacity if the checkbox is ticked, otherwise it will be 60% opacity if the checkbox is un-ticked.

Can I use element binding to achieve this?

Thanks all.




Aucun commentaire:

Enregistrer un commentaire