I'm writing a application in C# WPF.
I am having a small issue here.
In the class.cs, I have a line:
MessageBox.Show("Cancelled sending !");
And on my form I have a radioButton1.
How can I make it like
if (radioButton1.IsChecked == true)
{
MessageBox.Show("Cancelled sending !");
}
Because when I try it, it doesn't find the radioButton1
I have tried it different ways, but I can't find how to do it.