Bug 58177 - Replacing 'MainPage' in Xamarin Forms does not work
Summary: Replacing 'MainPage' in Xamarin Forms does not work
Alias: None
Product: Live Player
Classification: Xamarin
Component: Mobile App ()
Version: 1.0.253
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-07-15 17:39 UTC by Martin Jørgensen
Modified: 2017-07-31 18:19 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Sample project (184.89 KB, application/x-zip-compressed)
2017-07-15 17:39 UTC, Martin Jørgensen

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 58177 on Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.
Related Links:

Description Martin Jørgensen 2017-07-15 17:39:07 UTC
Created attachment 23580 [details]
Sample project

It is not possible to set a new MainPage in Xamarin Forms.


public App()

  MainPage = new LoginPage();

public static void GoToMainPage()
  Current.MainPage = new MainPage();

GoToMainPage is called from LoginPage.

I have attached a sample project.