Is it possible to let the MainPage on a different assembly (ClassLibrary)? Every time I try to start the application from a page that is on a different assembly the application throws an AccessViolationException.
if (rootFrame.Content == null)
{
// When the navigation stack isn't restored navigate to the first page,
// configuring the new page by passing required information as a navigation
// parameter
if (!rootFrame.Navigate(typeof(ClassLibrary1.BlankPage1), e.Arguments))
{
throw new Exception("Failed to create initial page");
}
}
No comments:
Post a Comment