Basically, what i have is one solution with two projects targeting Windows Phone 7 and Windows Phone 8. I have linked the pages and classes from my WP7 project to WP8 project (add as link), also each project contains two separate pages TestPage.xaml
and TestPageWP8.xaml
.
In the WP8 project i have added additional Conditional compilation symbols
WP8. So in my MainPage i have something like:
private void onButtonClick(object sender, RoutedEventArgs e)
{
#if WP8
NavigationService.Navigate(new Uri("/TestPageWP8.xaml", UriKind.Relative));
#else
NavigationService.Navigate(new Uri("/TestPage.xaml", UriKind.Relative));
#endif
}
The problem is that i can not open TestPageWP8
, the application always opens TestPage
My StartUp Project is WP7, i have Nokia Lumia 920 and 610. I am missing something but what?
Thank you!