Creating Pages or Windows in WPF

前端 未结 4 1752
别那么骄傲
别那么骄傲 2021-02-20 13:46

I\'m new to using WPF. I have the following program I want to create: -Application opens up with one button -User clicks button and it takes them to a new page with various inpu

4条回答
  •  旧时难觅i
    2021-02-20 14:37

    You can change your application object's MainWindow reference to another Window object.

    Application.Current.MainWindow = new SecondWindowToBeDisplayed();
    

提交回复
热议问题