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

The only way to get the instances of the childwindos is by importing them. What are you trying to achieve anyway?

Regarding debugging info on xap/mef erros you need to check the error property on the module downloaded event args.

On 1 Dec 2012 01:42, "highdownts" <notifications@codeplex.com> wrote:

From: highdownts

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

Read the full discussion online.

To add a post to this discussion, reply to this email (CompositeWPF@discussions.codeplex.com)

To start a new discussion for this project, email CompositeWPF@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com


Viewing all articles
Browse latest Browse all 1878


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