I'm not talking about an event handler for this, but rather a simple If Statement
checking if the CheckBox
has been checked. So far I have:
if (chkRevLoop.IsChecked == true){}
But that raises the error:
Cannot implicitly convert type 'bool?' to 'bool'. An explicit conversion exists (are you missing a cast?)
Is there a way to do this that I'm missing?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…