How can I navigate to .cs file that derives from custom PhoneApplicationPage? The inheritance chain looks like this: PhoneApplicationPage -> My casual page with xaml and cs -> page that will derive all with little modifications. NavigationService.Navigate(new Uri("/NewPage.cs", UriKind.Relative)); throws exception…
How can I navigate to .cs file that derives from custom PhoneApplicationPage? The inheritance
Share
Ok, so I have a workaround for the problem. As Barry Franklin has said it is impossible to navigate to .cs file, but it is possible to .xaml. The solution is to create a typical PhoneApplication page (xaml and cs), change the base type for our class (our class needs to derive from phone application page) and remove
InitializeComponent();from the constructor, this should be only in base class. This way the xaml is not loaded and we are using the layout from base class.