lundi 24 juillet 2017

WPF enabling multiple controls based on multiple checkboxes

I need your help. In WPF and MVVM, I want to enable multiple controls based on multiple checkboxes. I have two grids (A and B) and two checkboxes (X and Y).

if X is checked and Y is unchecked -> A is enabled, B is disabled

if X is unchecked and Y is checked -> B is enabled, A is disabled

if X is unchecked and Y is unchecked -> A and B are disabled

if X is checked and Y is checked -> this situation is forbidden

Any ideas?




Aucun commentaire:

Enregistrer un commentaire