wpfsilverlightprismcal

Multi Page Application in CAL


I have been learning about the Composite Applicaation Library, and came across a question: is it possible to build multi page applications using CAL?

All the examples I have seen use a single page with regions defined.

Can something like multiple shells be used? - If so is against CAL methodolgies to do so?

Moreover is it ok to build multi page apps using CAL or is it sinle page app exclusively?

Also it multiple shells or perhaps multiple Bootstrappers is possible a sample showing the correct way to do it is appreciated.

Thanks


Solution

  • Prism can be used for multi-page applications.

    One way is described by the Prism developer guide. Quickstarts are also provided to help the developer.

    However I find this way quite heavy to implement. And when confronted to the issue of multi-paging with Prism, I usually prefer a simpler solution :

    Like this, your view will not appear if the DataContext is null, thus navigation. In order to call the navigation methods, you can use globally available commands as described in the developer guide. This allows you to bind your navigation button commands directly to the navigation command from any module.