How to change a Windows Phone start page programmatically?

FYI, I know the title is similar to many posts in this forum, but they don't address this specific problem.
I have the following line in the App.xaml.cs file:
if (!rootFrame.Navigate(typeof(Page1), e.Arguments))
When I change MainPage to Page1, it changes the page you see on startup. So far so good. The problem is:
On Page1 I have checkbox so a user can check "do not show this page again". When a user clicks continue, on the button click event if the box is checked every time the program starts going forward it should load MainPage.
I am working with the following I have found:
To fix this you need to do the following in your tutorial page's button click
// Inside the Button click event of TutorialPage.xaml
// Change the mapping so that MainPage points to itself
((UriMapper)App.RootFrame.UriMapper).UriMappings[0].MappedUri =
new Uri("/MainPage.xaml", UriKind.Relative);
// Since RootFrame.CurrentSource is still set to MainPage, you need to pass
// some dummy query string to force the navigation
App.RootFrame.Navigate(new Uri("/MainPage.xaml?dummy=1", UriKind.Relative));
// Remove back entry so that if user taps the back button
// you won't get back to tutorial
App.RootFrame.RemoveBackEntry();
This seems like what I want, but I get two errors I can't solve.  Error 1 The type or namespace name 'UriMapper' could not be found (are you missing a using directive or an assembly reference?) and Error 2 'My.App' does not
contain a definition for 'RootFrame' 
I can't find a using statement or anything that will remove the URI error. as far as RootFrame, that is used in App.xaml.cs with no errors. It's spelled rootFrame but when I change it in Page1 it doesn't make a difference. I still get the same error. Using
statements are the same for both pages.
I would appreciate any help or a point in the right direction.  I'm using Visual Studio 2013 with the blank Windows Phone template.

I hope I'm not missing something because this is a very obvious solution...
Store a user setting and test it when the app launches.
if(usersetting == true)
if (!rootFrame.Navigate(typeof(Page1), e.Arguments))
else
if (!rootFrame.Navigate(typeof(MainPage), e.Arguments))
That user setting would have to be stored in the local user settings (consider the first line of my code to be pseudo-code).
This works perfectly for a scenario where you have a page that should only launch the first time an app is run or an optional landing page.
I'm a self-taught noob amateur. Please take this into account when responding to my posts or when taking advice from me.

Similar Messages

  • How to change the Crystal Reports start page

    The CR Start page has a panel on the bottom half which displays Highlights, Key Resources, and eLearning tabs. It is annoying. How do I turn it off?

    One more idea:
    Go to your below directory on your machine:
    C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\Start Page\en
    Take a backup of start.html file (If the below, doesn't work you can put it back)
    Open start.html and edit in notepad remove below code and save it , your annoying tab disappears
    <div id="onlinecontent">
    <iframe width="100%"
          height="1200px" align="center" scrolling="auto" FRAMEBORDER="0" class="resources" id="onlineresourse"></iframe>
    <script type="text/javascript">InitializeResourcesTag("onlineresourse")</script>
        <script type="text/javascript">SetFrameSource("onlineresourse")</script>
      </div>

  • How can I get Firefox to run on Windows 8 Start page instead of my Desktop?

    I have the Icon for Firefox on my Windows 8 Start page, but when I click on the icon to use the Internet my view goes straight to my desktop.

    hi WarriorEthos, firefox on windows is a desktop-only application. it does not run in "metro" mode.

  • How to distribute my windows phone 8 app and windows store app without publishing in the store

    How to distribute my windows phone 8 app and windows store app without publishing in the store
    any business license or enterprise license needed..
    I am a windows developer talking behalf of my company i.e  wipro
    I have a question about the enterprise license   and  we are building an app for the limited users i.e our company employees and users and we do not want to publish in the store
    How to release the app?
    what are licenses etc needed?

    Hi,
    for developers distributing apps without Publishing in the Store, the sideloding Enterprise key license through volume licensing is required.
    Starting May 1, 2014, customers who want to enable sideloading will be able to purchase an Enterprise Sideloading key for $100 through the Open License program. 
    An unlimited number of devices can be enabled for sideloading using this key.
    thanks
    diramoh

  • Lenovo Yoga 2 13 - Screen going back to windows 8 Start page every 5 seconds

    Hello !
    I've had for a few months this weird problem I find no solution for. In laptop mode, my screen randomly go back to the windows 8 start page while the laptop loudly vibrates. Even when I'm not touching the laptop it does so. I've searched for long on this forum and others but I still have not found any solution.
    Could somebody please help me ? :-)

    Hello !
    I've had for a few months this weird problem I find no solution for. In laptop mode, my screen randomly go back to the windows 8 start page while the laptop loudly vibrates. Even when I'm not touching the laptop it does so. I've searched for long on this forum and others but I still have not found any solution.
    Could somebody please help me ? :-)

  • How to change the color background in Pages for iPad?

    how to change the color background in Pages for iPad?

    You can find many themes at https://github.com/hdoria/xcode-themes  There's a download zip button on the right side of the page.
    Unzip and and copy the .dvtcolortheme files into /Users/YourUsername/Library/Developer/XCode/UserData/FontAndColorThemes Create the directory if it doesn't exist.
    If you can't find the Library directory you can get to it by using Finder's "Go to Folder..." option under "Go" or press shift + cmd + G then type the path.

  • How to change main window title of oracle ebs

    Hi all,
    Kindly tell me how can we change the main title of oracle ebs 11i.
    Thanks

    Hello Gloscott,
    Welcome to the Aperture discussion forum. Congratulations. You just hijacked a thread. That's bad form for 2 reasons. First, you added a message to a thread called "How to change main window view" which makes it look like you had information to add that thread, and you did not. Second, people who can help you are more likely to read a message that has your problem in the subject than they are to read this message. I.e., you won't get what you want if you ask for something else.
    That being said, when you repost your query in a new thread, you'll have to be more specific. A "Frame" is not in the regular Aperture terminology.
    nathan
    Message was edited by: Mr Endo

  • How to change the header in all pages at once?

    I'm new to iWeb and can't figure out how to change the headers of all pages without having to go through and do it to every page. There should be a way, but is this a feature iWeb doesn't have?

    Hi,
    Refer following link which states how to change the Page Setup setting (just an addition to above poster's explanation):-
    http://docs.oracle.com/cd/E12825_01/epm.111/fr_user/frameset.htm?1900.html
    Regards,
    Edited by: 918547 on Dec 14, 2012 6:17 PM

  • How to change to landscape orientation in Pages for iPhone4s?

    Does anyone know how to change to landscape orientation in Pages for iPhone 4s and iPad?

    The functionality on an iPhone is greatly diminished when having to work in potrait mode due to the screen size; it really becomes a bit useless.
    It seeems a no-brainer; I guess that's why I asked on the forum.
    Maybe someone else knows more.?
    I hope that you're not right but think you probably are.
    Thanks again for offering to help!

  • How to Change the Windows Title in EP7.0

    Hi
    Can anyone provide some pointers on how to change the windows title bar in EP 6.0
    We would like to remove the words "SAP Netweaver Portal" from the title.
    I have found OSS note  695903 however this refers to EP6.0
    Thanks in advance.
    Ian

    Hi,
    For people who have no access to the note, here are the steps involved. The same steps are listed in the note :
    1) Logon to your portal with your user who has super_admin role.
    2) Go to the System Administration tab -> System Configuration tab.
    3) Go to the Service Configuration -> Central Configuration.
    4) Change the portal.html.head.title part. Do no forget to save the changes you made.
    5) Restart the j2ee server to be able to see the changes on the portal
    Cheers,
    Sunil

  • How to change the Window Title on a per build spec basis?

    I would like to be able to make 4 "build specificiations" against the same Startup-VI and be able to have the Window Title different in each of the output executables.   I know how to change the Window Title for the VI itself, but for some reason, I don't see the ability to override this information in Source File Settings --> Customize VI Properties dialog of the build specification.    Is there perhaps a way to do this programattically with VI server?  Perhaps there is a way I can define a unique symbol on each of the build specs and then do a case statement in code to determine which title to display based on the symbol that was defined?
    Thanks,

    You can use the appropriately named Window Title property. In your project you can define conditional disable symbols (right-click on the project node and select Properties) and then use a conditional disable structure in your code. However, these symbols apply to the entire project, not to a specific executable. Thus, a better route would be to use the executable name (also accessible via a property), if possible, or some other distinction between the executables. What makes the executables different?

  • Hey, I broke my iPhone 4 screen when I change it my phone start to turn off while my battery reach the 25% when I connect it to the charger it switched on, and the battery percentage is around 25% so it's the time for a new battery, or I need to calibrate

    hey, I broke my iPhone 4 screen when I change it my phone start to turn off while my battery reach the 25% when I connect it to the charger it switched on, and the battery percentage is around 25% so it's the time for a new battery, or I need to calibrate it? thank you

    There are no user serviceable parts in an iPhone. Since you
    made an unauthorized repair to your iPhone, you will have to
    seek assistance elsewhere.
    Google or ifixit.com may provide some direction, but you can
    get no help here per Terms of Service. Sorry to tell you this,
    but it is what it is.

  • My Mozilla Firefox start page changed yesterday. It's cumbersome. How do I get back the start page I had previously?

    The new start page fills the whole screen. You have to bump the cursor against the top margin to reveal the bar showing the tabs and the 'X' to close in the RH corner. At the bottom the start page covers the 'start' box and the information on the bottom row. Now I can't click directly on Bookmarks - I have to click the logo and then use the sidebar to access the bookmarks. I have also lost the ability to switch between the net and the document I am working on.
    This new configuration may suit some people, but the previous one was straightforward and better for me. How do I get it back, and prevent Firefox updating it again to this version?

    Hey Revert back changes (if you don't like) via settings on right top side . Also send a related image so we gave you exact info about the settings. You can Shut automatic updates (but it may leads some issues) via
    '''option'''-> '''advance''' ->'''update''' now choose any one of the following :
    * Automatically Install Updats
    * Let me choose
    * never check for

  • How do I change the default Firefox Start Page tab to a tab I want

    When I start my FF browser with my chosen homepage, a default tab labeled "Mozilla Firefox Start Page" appears. I would like change that tab permanently from Firefox to Facebook. How do I do that?

    Thanks, it worked. I didn't try it before because I thought it would change my original home page, but it didn't. So basically I have two home pages - one as the main page and one as a tab. Thanks again!

  • How can I make Mozilla Firefox Start Page use Google search instead of SearchCompletion search?

    I have just upgraded Firefox 9 to 10. I noticed when I fire up Firefox at the Start Page and enter a query at the search bar, the resulting pages are from SearchCompletion engine.
    How do I make Google search engine as the default engine at the Firefox Start Page ... like it has always been?
    Seems like one of those irritating changes that happens when upgrading versions...

    Do a malware check with some malware scan programs. You need to scan with all programs because each program detects different malware. Make sure that you update each program to get the latest version of the database before doing a scan.
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and Searches are redirected to another site

Maybe you are looking for