Quantcast
Channel: patterns & practices: Prism
Viewing all articles
Browse latest Browse all 1878

New Post: How to create a separate XAP file using Prism/MEFBootstrapper for a complex Child Window?

$
0
0

 Hello,

Thanks much for your assistance. I have made some progress today.

 

I struggled for quite a while with a module not found error where VS reported that the named module could not be found. However, after checking everything in the Silverlight and SharedFormsModule code and doing some web research, I found that I had a mismatch between the importing annotation on the property in the SharedFormsModule and the class exporting annotation as follows:

 

[Import("ErrorWindow",typeof(ChildWindow))]

publicChildWindow ErrorWindow {get;set; }

 

and

 

[Export(typeof(ChildWindow))]

publicpartialclass ErrorWindow : ChildWindow, IErrorWindow

 

When I added the name to the export, I was able to read the module. If there are several layers of imports/exports in a given module on the server, is there a way to get better debugging information using MEF? The loaded module was found, but there was an exception thrown somewhere in the Load code because of the underlying name mismatch, but there was not mention in the error exception of the real problem.

 

Lastly, after the ModuleManager.LoadModuleCompleted event fires, which it does now, how do I get an instance of the downloaded module to access either one of the two ChildWindows? I have searched on the net, but not found any help here.

 

Thanks, Warren


Viewing all articles
Browse latest Browse all 1878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>