Invoke a method in the MainWindow from ChildWindow loaded using MEF
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.
精彩评论