Bug 4989 - [Designer] Resource-adding text box is not cleared when user adds string resource in VS designer
Summary: [Designer] Resource-adding text box is not cleared when user adds string reso...
Alias: None
Product: Android
Classification: Xamarin
Component: Designer ()
Version: 4.1.x
Hardware: PC Mac OS
: --- critical
Target Milestone: ---
Assignee: Lluis Sanchez
Depends on:
Reported: 2012-05-09 20:47 UTC by PJ
Modified: 2012-05-11 05:24 UTC (History)
2 users (show)

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

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 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.

Related Links:

Description PJ 2012-05-09 20:47:30 UTC
Visual Studio 2010
MFA 4.2 RC4

Steps to reproduce:

Add a button to a layout.
Double click the button to edit the text.
Click into the text box to focus the text box.
Press tab to open the resource-editing text box.
Press enter to apply the changes.

Expected result:
Button displays the resource name (@string/button) (bug 4987)
Text boxes clear

Actual result:
Button displays the resource name (@string/button)
Text boxes do not clear
Even if I delete the widget, the text boxes remain.

Reload the .axml file

This issue does not occur if I press escape instead of enter.
This issue does not occur if I click away from the button instead of pressing enter.

Setting severity to critical because this will be a common user action day one, and the most intuitive way of accepting changes is pressing Enter. Additionally, without restarting you will encounter a number of other issues (most noticeably, you cannot double click on other buttons to edit the text). This means you must restart VS every time this issue occurs.
Comment 1 Lluis Sanchez 2012-05-10 03:09:42 UTC
I can't reproduce. No matter what I do the edit boxes go away when I click anywhere in the designer. I'd need a sample project for this.
Comment 2 Lluis Sanchez 2012-05-10 06:39:15 UTC
Although I can't reproduce, I committed a change that may fix the problem (dc3c9d4a7a0466c84373eee2e6537404ce4adb6c). Can you please verify?
Comment 3 PJ 2012-05-10 10:41:13 UTC
The behavior only manifests when pressing Enter after editing the string resource (not clicking or pressing esc)
Comment 4 PJ 2012-05-11 05:23:49 UTC
Verified fixed in MFA 4.2.0 RC5