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

New Post: Silverlight 5 Navigation Project/Prism Navigation Cache Mode Disabled

$
0
0

Hello Agustin,

Thanks for your tips.

It looks like all that is required is to detect when the module in ‘Initialized’ and then to drop in the appropriate initialization and view visibility code. Something like the following:

if (module !=null&& module.State == ModuleState.NotStarted)

moduleManager.LoadModule(moduleToLoad);

elseif(module != null&& module.State ==ModuleState.Initialized)

{

Initialization and visibility code here…

}

I have already implemented a common event service to allow inter-module/code block communication. I was able to get an instance of the page/module view and set its visibility attribute, which eliminated the white screen. It works just like the cache is enable. I have not implemented the publish/subscribe initialization event yet, but that should be straight forward through my existing messaging/event system.

I appreciated your help.

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>