This project has moved. For the latest updates, please go here.

Dynamic Loading of "Modules"

Jul 11, 2011 at 12:31 PM

Hi

I've set up a Silverlight project containing a number of "Modules".

In the currently visible view I use executes the following line in the viewmodel:

EventAggregator.Publish(new ViewNavigationArgs("AboutModuleView"));

After that this function are invoked triggered in my "ShellModel"

      public void HandleEvent(ViewNavigationArgs publishedEvent)
        {
                CurrentView = Router[publishedEvent.ViewType];
           
        }

The publishedEvent.ViewType is "AboutModuleView" wich is correct but the Router returns "null". This means that Current view is set to "null" and the screen is blank.

Intressting enough is that if I continue to trace the execution,,,,, the AboutModuleView.xap is loaded ..... ????

For me it looks like AboutModuleView.xap should be loaded before the HandleEvent is triggered. Am I using Jounce in the wrong way?

//lg


Jul 13, 2011 at 6:28 AM

Hi Agin

I found a fault in my code. This issue can be closed.

//lg