I have recently created an application for wp7. Now i am ready submit an update for my app. In the i have added a UserControl page(contains a dialog box). I want it to displayed on the MainPage.xaml or in app startup but only for the first app launch. I know how to show a MessageBox for the first time but don’t know how to show a xaml page.
if (!IsolatedStorageSettings.ApplicationSettings.Contains("IsFourthLaunchDone"))
{
MessageBox.Show("To Enable Full screen mode, go to settings and select Full Screen Browsing.");
IsolatedStorageSettings.ApplicationSettings["IsFourthLaunchDone"] = true;
}
Can anybody help me with this? Thanks in advance for your help!
Here’s an idea of how this is properly done with a MessageBox.
App.xaml.cs:
MainPage.xaml.cs:
To do this with a UserControl, add the Control to the page, initially with a Collapsed Visibility. In the scenario you want to display it, change the visibility to Visible. You’ll need to figure out in what way you want the Control to work, and probably you’ll need to override OnBackKeyPress to provide a logical way for the user to close your control.