Intelliabb / XamarinControls

Cross-platform controls for Xamarin and Xamarin.Forms.
Apache License 2.0
102 stars 12 forks source link

Checkbox manual check #21

Closed AloysiusParedes closed 5 years ago

AloysiusParedes commented 5 years ago

Everything works really well. But I can't find a way to manually set the checkbox's "checked" status via code. There's the function to check if the checkbox is checked (returns bool), but not manual setting.

Is there a function to set the check box to "checked" or "unchecked"?

i.e. myCheckBox.SetChecked(true);

Intelliabb commented 5 years ago

You can set the check directly as, myCheckBox.IsChecked = true;

AloysiusParedes commented 5 years ago

You can set the check directly as, myCheckBox.IsChecked = true;

face palm hahaha I guess my brain isn't functioning very well at the moment. Thank you so much!! That worked :)