0

I am a new programmer for windows phone and I finally tried creating multi-paged apps. I am trying to move between the main page to a blank page. I use the following code:

private void Submit_Click(object sender, RoutedEventArgs e) { this.Frame.Navigate(typeof(BlankPage1)); } 

the app crashes and I get the following error: The program has exited with code -1073741189 I looked online but using a dispatcher doesn't help either. I'm clueless. How Can I fix this?

3
  • It's hard to say with so little code. Foe example it may depend when you try to navigate - this process is asynchronous and if previous navigation has not ended, you may get an exception. Please provide more details. Commented Jul 9, 2015 at 17:01
  • I have not navigated to any pages. It is inside a button press Commented Jul 9, 2015 at 17:36
  • Have you modified somehow the constructor of BlankPage1 or its xaml file? Commented Jul 9, 2015 at 18:04

2 Answers 2

1

My problem was that the exception was raised at a different point in the compilation of the new page and thus the whole program crashed. If you have this error just debug line by line until you find an exception. My code was long so it took me a day or two but usually debugging will be the solution.

Sign up to request clarification or add additional context in comments.

Comments

0

Try this.Frame.Navigate(typeof(YourType))?

We really do need to see more code though..

1 Comment

Doesn't work. I edited the code in to the original question

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.