How to change screen's in windows phone 7? - windows-phone-7

Problem with the UriMapper. The flaw is when i am navigating to my EULA page which navigates to first page which navigates to Main Page.xaml but, this navigates back to EULA.xaml, here i mapped the MainPage.xaml and toggled between EULA.xaml and MainPage.xaml. So, the problem is after EULA->firstpage->EULA but i want it like EULA->firstpage->MaiNPage. How to achive this?
Regards,
Panache

You have a navigation loop.
Instead of mapping MainPage with UriMapper, map a virtual page eg. MainOrFirstPage.

Are you talking about a Navigation Loop ? I have this problem with a login screen : Remove a page from Navigation Stack

If you want a way to only show your EULA page once, have a look at these questions which all cover this issue:
Creating a Logon Screen
How do I clear navigation history in Silverlight/Windows Phone 7?
How to change the startup page of a WP7 Application
Windows Phone 7 Sign in screen redirect
On application launch show 2 different pages based on a condition?

Related

Page transition in Windows phone 7

I want to display a page above page in Windows phone 7
such that the second page is transparent and when it becomes above (pop-up) the first one I want to still be able to see the first page.
You would better use UserControl s. Implement each page as a <UserControl> and load them accordingly into the MainPage.xaml.
I would suggest you to have a look at the MVVM for Windows Phone

how to give instruction before application launch WP7.?

I want to show some instruction once in a while,
when application installed and start to run the application that time I have 3 screeen shots image one by one user tap on image it will forward to next image so how I can do this into windows phone 7.?
Note : this is only first time when app install and have look.
Thank you..!
May be you could create a UserControl which displayed when your MainPage has jus loaded.
Make another xaml page and redirect user to it in case it is a first launch of the application.
In a loaded event of the newly created page put this code:
NavigationService.RemoveBackEntry();
That should be it.

Windows Phone Application - Start page depends on FileExist in isolated storage

I'm developing application that start page depends on file existing in isolated storage.
If file doesn't exist my application shows some form to setup configuration, but if it exist I wish this page will not be diesplayed.
For now I just load configutarion page but if file exist i use NavigationService to navigate to proper page on pageloaded event. The problem is that after I play with my app and hit back button it goes to configuration setup and because file exist it navigates me stright to my app again. I despite the fact that setup screen blinks on the application launching.
So my question is - how to setup startup page depends on some condition ?
The advice that I've heard is to use a UserControl on your startup page - then toggle the visibility depending on the condition you have. That way you don't end up with an unwanted page in the backstack and you get to fully control the UX.
The example I heard it with was a login page - not something you want on the backstack usually - but something you can easily check a bool to hide/show the user control.
The place I heard it was this video from Mix 11: Expert Lessons: Top Tips for Building a Successful Windows Phone Application. You can download the code to the demo (it is the first demo in that video) from the bottom of his blog entry here (which gives some more detail): Demos from my Mix 2011 session - Part 1: Navigation Tips
There is no way to launch different page on some conditions.
There are methods to manipulate Page Stack in NavigationService class, so you can remove setup page from history and app not will be navigated to it when user tap back button.
For fighting with page blinking you can put an image (the same image as splashscreen) above your page, and hide it when right content loaded

Mango Secondary Live Tile issue

I have a panorama application and I have successfully created secondary live tile with URI pointing to the desired xaml.cs. Now the xaml part which is separate from mainpage.xaml is of no use to me so what happens is when user goes to the secondary live tile, code from desired.xaml.cs is seen by the user. But when he presses the back button, he goes to an empty page and then goes to homepage and I am aware it is not possible to jump directly to home screen. So how do I solve this issue? If you are wondering how this works - try network dashboard for Windows phone. Quite similar.
Can't reproduce. When you are navigated from a Live Tile, and presses back, you'll exit the application, since there are no other pages in the navigation stack.
The Network Dashboard works the same way.
If you somehow managed to have other pages in your navigation-stack , consider removing them using NavigationService.RemoveBackEntry

How To Navigate Images From One Page To Another page in windows phone 7?

I Want To Display One Xaml page Image In Another Xaml Page When clicking On It in windows Phone 7 Application Using Silverlight.Give Sample Code for That One.
First tell how you are navigating from one page to the other. If u are using NavigationService.Navigate(), we can't pass objects using this architecture.

Resources