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 on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
When adding a control from the Toolbox to the Document Outline window, the designer surface visually shows two instances of the control. If you then go to look at the Source tab, you will see two instances of the control as well. You can also trigger this by going to a different tab such as the MainActivity.cs and going back to the Main.axml file.
Adding an "ImageView" to a "LinearLayout":
Changing back and forth between Source -> Designer:
1. Create a File->New Xamarin.Android Project
2. Open up the Main.axml file in the designer
3. Open up the toolbox and Document Outline windows
4. Add any control from the toolbox to the document outline into a viewgroup such as a LinearLayout.
I have not done a thorough investigation, but it seems all controls I've tested have this behavior. (ImageView, TextView, Spinner, etc)
Visual Studio 15.3.3
I cannot reproduce issue on master (https://www.screencast.com/t/ApKlTPzeasw), however for me the outline window does behave strangely where the first item seems to disappear when a new one is dropped.
@Bret, could you double check this one?
Update: I haven't been able to repro this, on master. I'll get with Jon and we'll go thru the steps together.
Another update: I was eventually able to repro. https://github.com/xamarin/designer/pull/243 should fix it.
Fixed, via https://github.com/xamarin/designer/pull/266
I have tested the bug with d15-5 preview 4 build. The issue is seems to be fixed.
I have not done a thorough investigation, but it seems all controls I've tested have expected behavior i.e. only one control adding at one attempt. Controls tested so far -Button, ImageView, TextView, Spinner, etc.
Microsoft Visual Studio Enterprise 2017
Version 15.5.0 [27109.1.d15rel]
Microsoft .NET Framework
Installed Version: Enterprise
Xamarin 188.8.131.524 (a773aca)
Xamarin Designer 4.8.152 (5e0da2967)
Xamarin.Android SDK 184.108.40.206 (HEAD/f65f87747)
Xamarin.iOS and Xamarin.Mac SDK 220.127.116.11 (c4240f3)
Complete Build Details:
Hence marking the bug as verified.