Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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 57078 on
Developer Community or GitHub 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
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
# Steps to Reproduce
1. File -> New -> Forms app.
2. Open one of the XAML pages.
3. Enable the previewer (if not already enabled).
# Expected Behavior
Previewer opens current startup project's preview. For example, the default on a File -> New is iOS. When I open the previewer, it should default the first view it attempts to preview to the default (which in this case, should be iOS).
# Actual Behavior
Previewer always opens to Android by default, as seen below:
# Additional Info
I couldn't reproduce this with 7.2. Instead, it always shows the iOS tab selected in the previewer regardless of what my startup project is. Can you provide some more details and confirm if you see this with 7.2?
Note* I can't view the screencast because of flash.
The current logic is:
* If you have an iOS only project then iOS will be the default option.
* If you have an Android only project then Android will be the default option.
* If you have iOS and Android then *by default the very first time you open a xaml file* it will use Android.
* In all other scenarios it will use whichever view the user used previously. i.e. if you never change it then it will always show android (as expected). If you manually decide to view as iOS then future xaml files will open under iOS by default, the assumption being that you choose iOS for a reason and we should respect that decision.
Using the startup project in the manner you suggest would mean forcing the user to constantly change to another view.
The heart of this request was to get this behavior changed:
> If you have iOS and Android then *by default the very first time you open a xaml file* it will use Android.
Because the very first time you open a XAML file, you are evaluating Xamarin and Xamarin.Forms, and we want to make sure you have as pleasant of an experience as possible. On Mac, the Android experience is significantly worse than the iOS experience.
> On Mac, the Android experience is significantly worse than the iOS experience.
What is worse about the android experience than the iOS experience? Is there something we can address there?
The context for this decision is: We always use android because it used to be an order of magnitude faster to initialise Android than it was iOS. If you're working in Visual Studio it also means we do not force people to have a paired Mac.