WPF Checkbox isChecked???

Hi!

I will ask the state of a Checkbox...

This will not be working:

if (checkBox1::IsChecked = true)

continue

end-if.

What is wrong?

 

Best Regards

Bernd