I am developing a Windows app where I have login screen and from there I am navigating to different pages depending upon user's access rights. This bit is working fine. But when user click back button on phone it shows blank screen. I think reason for this is because I am not on MainPage.xaml it is on another page and by clicking back button it come back to mainpage where it has nothing to show. I may be wrong.
Has any one faced this problem Please help me because I am ready to put my app on live this is the only problem I am facing.
If your mainPage is log in page and you are navigating from main page, after successful log in remove main page entry from back stack. So that it will exit the app instead of showing blank page.
For removing entry from Page stack you can use following.
this.NavigationService.RemoveBackEntry();
Please check around before you post question.
Related
One of the forms on my application takes a while to load.
I need a splash screen that pops up while the form loads. Unfortunately I don't even know where to start on this one as I can't seem to find anyone using splash screen between forms, only when loading application so I couldn't find any ideas.
Can anyone give me a clue?
Regards
Right click on your project > Add > New Item > Splash Screen
I am developing a Windows Phone 8.1 app. In that I need to to navigate from
Page1 --> Page2--> Page3
But I don't want Page1 to apper again when I keep on pressing back button.
Page3-->Page2-->Exit the app
I was able to achieve this using Frame.BackStack.Clear() in the OnNavigatedFrom() of Page1. But the problem is when I click the app icon again its only launching from Page2 not from Page1.
So I want to understand, why the back stack is not cleared when we press
back button and exit the app. And how to achieve the behavior I require
Windows Phone 8.1 Store apps do not close when you are navigating back from the first page. Instead they only get suspended. So once you start open it again, you end up on the last running instance of the app again, this includes backstack, page state, etc.
In the app.xaml.Cs's OnLaunched handler, you can intercept this behavior: You can check the e.PreviousExecutionState where you can check, if you want to handle it as a real restart.
In that case you just dump the current Frame and replace it with a new one, or clear the backstack and start with a new navigation.
Also: The Backstack is a list. You can remove single entries any time and not only completely clear it with the RemoveAt method.
Your methods sounds okay to me. It is that the app runs behind the scene. Unless you write a code like this it will keep running in the last position you kept.
Application.Current.Exit();
After choosing the user in the login view, the library saves this information somewhere so that the app has not to ask for the user again.
Where is this information stored? I need to know how to reset this setting for a fresh start?
If you're simply looking to switch between users, there is an easy way to do this when the app starts up.
On iOS, there is a brief message shown at the top of the screen when the app starts up, if you click on that, you can change to a different user.
On Android, there is a notification that you can reach by pulling down from the top of the screen once the app has started. Click on the notification and you can change user.
I am implementing a simple webview application with only one url. I have over ridden back button function for webview navigation (which is working fine). Now my app has only one screen with webview and user visits the links inside main url and navigates using back button.
I want to know that, What is Microsoft Certification Policy as my application has only one screen so should it Close when user press back button anytime? Or Microsoft allows implementing of webview with over ridden back button functionality.
If question is still unclear Kindly tell me. I'll explain more but I need to know answer to this question.
Thanks.
You shoulld be fine, I have submitted applications which works like that myself which passed certification.
As long as the application quits when pressing the back button when there is no more "history" for the webbrowser control it shouldn't be a problem because the user still get the experience of moving "backward" in his use and can finally quit the app.
Regarding WebBrowser control and content of the app please consider this requirement:
"Your app and metadata must have distinct, substantial and legitimate content and purpose. Your app must provide functionality other than launching a webpage."
So, the application's sole functionality must not be only to launch a website.
This is not releated to back button but very important thing that need to be considered!
Best regard
I am working in the sencha touch 2.0. I am unexpectedly facing a problem in the Tab Panel. At the one of my page I have TabPanel with three tabs (By Name, By Department, By Location).They are working fine but when I active the tab By Department and Logout from the app and again come to the This page the deafult activate tab Must be BY NAME. But the active tab is that one which I activated before to logout(By Department).
Can you post some code? Start with the tab panel. Also, check to see if you have 'autodestroy: false'. If you have that in your config that could be causing a problem. Other than that, its hard to say without seeing how you have it set up. It sounds like it isn't getting removed but hidden and another page is on top of it.