7

myCheckbox.isChecked = myboolean--> weirds bugs

myCheckbox.isChecked = myboolean ? true : false --> All weirds bugs fixed

\o/ Thank's Visual Studio for spending time \o/

Comments
  • 4
    IsChecked is a triple state boolean. It can have the values true/false/null. This would explain your errors. 👌
  • 1
    @moagggi Ok that's why, thanks x)
  • 0
    No prob 🤗
  • 2
    Ever heard of Nullable<T> in C#??? If not, look it up. You can also do Bool? Which means the same. 😁
Add Comment