I\'m working on a small wpf project using c#. I have 2 windows. When I go from one window to the next, i need to have some items preselected on the 2nd window. I have a check
Using this:
Window2 w2 = new Window2(); //This doesn't work w2.Checked = true;
You're setting the Checked property of the window not the control. It should be somehting like this:
Window2 w2 = new Window2(); w2.MyCheckBox.IsChecked = true;