How do I show a new form in a Windows Phone 7 App?
I’ve initialized my class like this:
Jeans jeansform = new Jeans("Elwood Curtis");
However, there’s no jeansform.Show() method.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Generally windows phone 7 application use a form navigation similar to a silverlight navigation application hosted by a browser. This allows the phone back button to navigate back from “pages” which have been navigated to.
Your
Jeans“form” should actually derive fromPhoneApplicationPageand should have a simple default constructor (not one that accepts a parameter as you have at present).You would then navigate to your page with code like this:-
Your “Jeans” page then does most of its initial configuration in
OnNavigatedTo:-