mardi 29 septembre 2015

WPF Check box command to List or From List

I am new to WPF and not sure whether, whatever i am trying to do is possible or not.

I have checkbox as below :-

<CheckBox Name="cbAccess" Checked="cbAccess_CheckedChanged" Unchecked="cbAccess_CheckedChanged">Access To Save</CheckBox>

List as below :-

List<int> accessList = new List<int>();

if checkbox is checked then it should fire command 10 (int) and i will add the 10 in some list. and then unchecked then remove from list.

When first time window get loaded then checkbox will be checked or unchecked on the basis of commnad 10 exist in list or not.




Aucun commentaire:

Enregistrer un commentaire