WPF - How to access method declared in App.xaml.cs?

后端 未结 2 416
死守一世寂寞
死守一世寂寞 2021-02-03 22:39

How can I access, using C#, a public instance method declared in App.xaml.cs?

2条回答
  •  南笙
    南笙 (楼主)
    2021-02-03 23:04

    Have you considered to create a separate class to hold your application wide methods (eg. AppState.cs)?

提交回复
热议问题