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

Hi Warren,

The idea behind loosely coupled app is to avoid having references, which prism/mef combination solves more easily.

For your case this what you do
- shell will download your sharedformsmodule which has 2 childwindows which are defined and exported in that module
- shell needs to open up the childwindow by calling show on them once they are available, i.e. When module is downloaded

For shell to access the childwindow you need to
- have 2 properties each for your childwindows in shell itself.
- no need to have a property that references the module you downloaded.

In module download completed you will check to see if your childwindows are imported. If yes call Show() on them. Its that simple. Unfortunately i'm travelling and not able to send you a working sample for your scenario. This is a very trivial problem. Let me kno if what i'm suggesting is making sense to you!

Cheers!


Viewing all articles
Browse latest Browse all 1878

Trending Articles



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