In my ViewModel, I want to build a collection of Page objects from this list of page names:
private string[] pageNames = {
"Introduction.xaml",
"Slide1.xaml",
"Slide2.xaml"
};
How do I instantiate them dynamically, e.g. something like this:
foreach (string pageName in pageNames)
{
//PSEUDO CODE:
Page thePage = new &&pageName();
thePages.Add(thePage);
}