开发者

Access App instance from MainWindow instance

开发者 https://www.devze.com 2023-03-07 09:08 出处:网络
Is it possible to access App instance from MainWindow instance? My App p开发者_Go百科erforms some initialization steps (like configuration initialization) and I need to pass the config to MainWindow.

Is it possible to access App instance from MainWindow instance?

My App p开发者_Go百科erforms some initialization steps (like configuration initialization) and I need to pass the config to MainWindow.


App.Current should return this instance, you will need to cast it though.

0

精彩评论

暂无评论...
验证码 换一张
取 消