开发者

Invoke a method in the MainWindow from ChildWindow loaded using MEF

开发者 https://www.devze.com 2023-04-01 05:01 出处:网络
How to invoke a method in the MainWindow from ChildWindow loaded using MEF Both Main App and the Mef library share the same interface 开发者_运维百科library Pass the MainWindow reference to the Child

How to invoke a method in the MainWindow from ChildWindow loaded using MEF

Both Main App and the Mef library share the same interface 开发者_运维百科library


Pass the MainWindow reference to the ChildWindow in the ChildWindow constructor. Make the necessary methods public in the MainWindow. Then you could call them from ChildWindow.

0

精彩评论

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