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 need to declare it as static as you don't access it via an instance, but via class name. That said, it is usually not considered good design to expose fields publicly.
static