Silverlight: How to create a page dynamically
问题 Problem: I store the page name I want opened in Silverlight in a database. When I startup the application I want to set the page to this string so rather than this: this.RootVisual = new MainPage(); I want something like this string pageName = getValueFromDatabase() if (!PageExists(pageName)) throw error else this.RootVisual = SomeWizzyMethodToCreatePage(pageName) I guess I will need to use reflection here to find all of the pages (PageExists), and then somehow create a new instance