common XAML approach in Prism

Oct 1, 2008 at 8:34 PM

  I was hoping that someone from the community could help me with a question that I have.  The StaticModuleLoad example that ships with the latest Prism drop does not contain identical XAML.  Why can't it be shared between the two platforms like some of the other items (i.e. classes and such).  Was this just used as an example?  Or, is it a best practice to always have different XAML files between the two platforms?  Thanks to anyone in advance that can help.

Oct 1, 2008 at 9:45 PM
In this case the XAML files were identical, as the view is extremely trivial. In general you'll probably have different XAML content.
We chose to create them by themselves instead of linking them as normal classes, to avoid quick conclusions such as that the views can be entirely shared between the two platforms, which may not be true for the majority of the cases.

I hope this helps,
Julian Dominguez
Oct 9, 2008 at 4:52 PM

  Thanks for replying.  Looks like it makes more sense to have them separated.  Do you think that will change in the future?