Hello I have a WPF/C# application with 2 windows. I am trying to access a
public int myInt;
in my MainWindow from my OtherWindow:
You either need to have an object:
MainWindow mw = new MainWindow(); mw.myInt = 3
Or you need to make rour field static
public static int myInt;
and call it like your are already doing:
MainWindow.myInt =3;