How should I pass data between WPF Windows involving `MainWindow` (C#)?

前端 未结 3 830
时光说笑
时光说笑 2020-12-08 23:26

I am currently starting a C# project in which I am modelling a simple ATM machine, and will therefore need several screens. I have run into the problem of passing data betwe

3条回答
  •  醉酒成梦
    2020-12-08 23:59

    Pass the whole window
    this will be MainWindow

    Window2 newWindow = new Window2(this);
    

提交回复
热议问题