Prism (2) Silverlight Reference
I need to make sure some important data is loaded before loading the module and shown on the screen. given the asynchronous nature of data loading in silverlight, I was wondering if there is a template I have to follow in order to load my data (like an event on a module or a loading tray to grab or a method to override) ...
0
a source to share
2 answers
There is another alternative as well. If you know you will need a module and the data is statically stored inside another module, you can install the dependencies:
ModuleCatalog m = new ModuleCatalog();
...
m.AddModule(typeof(PersonModule.PersonModule), "ModuleA");
In this case, your module will set a dependency on which module has data, and this will ensure that the data is loaded before writing.
0
a source to share