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

Agustin,

I did some additional testing and I have a guess as to what is happening. Can you please confirm or reject my hypothesis.

I normally have the following code inline with the module load code.

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

moduleManager.LoadModule(moduleToLoad);

The second time the page is loaded, the module state is initialized, which means the module will not be loaded due to the conditional logic above. If the page is not cached, then it appears that the Silverlight Navigation page does not know what to load so it is blank.

When I altered the above code to the following, the result is the same.

if (module !=null)

moduleManager.LoadModule(moduleToLoad);

It appears that the module manager is smart enough to know that the module is already loaded and initialize, hence it does nothing (i.e., does not load a module or throw an exception). It would appear that it does not think anything is wrong.

The page load result is the same in that the Navigation template has nothing to display because nothing is loaded.

Does this possibly explain what is happening. I.e., things are actually working correctly?

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>