lundi 15 mars 2021

Assign Value of Checkbox without Binding [closed]

I set the true/false value programmatically in code behind like this when the form first load, but it not working, it's not tick on UI.

chk.IsChecked = true;

For your information, the wpf form is using MVVM model and this is a checkbox I add in code behind without any binding like IsChecked = {Binding SomeValue}.




Aucun commentaire:

Enregistrer un commentaire