Bug 846 - Name changes when I add a new widget
Summary: Name changes when I add a new widget
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: GTK# Designer ()
Version: 2.8 Beta 1
Hardware: PC Mac OS
: Low minor
Target Milestone: Future Cycle (TBD)
Assignee: Bugzilla
Depends on:
Reported: 2011-09-15 17:32 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2016-12-14 18:41 UTC (History)
4 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 for Bug 846 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 original description:

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

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Rolf Bjarne Kvinge [MSFT] 2011-09-15 17:32:09 UTC

Open the MonoDevelop.IPhone project.
Right-click User Interface, New Widget...
Set Name to: MonoDevelop.IPhone.Gui.TestFlightSettingsWidget
Hit New.

And I get a new widget called MonoDevelop.IPhone.MonoDevelop.IPhone.Gui
Comment 1 Rolf Bjarne Kvinge [MSFT] 2011-09-15 17:33:23 UTC
And setting Name to Gui.TestFlightSettingsWidget produces a widget called MonoDevelop.IPhone.Gui.
Comment 2 Mikayla Hutchinson [MSFT] 2011-09-15 18:31:47 UTC
I guess the widget templates shouldn't permit namespaces, since they take it from the project tree.

Since the UI design is linked to a real class file in the project tree, I'd suggest adding the widget to a real folder in the project tree instead of to the 'User Interface' virtual folder. That way, it'll take the namespace from the folder.

TBH this is partly a symptom of the the 'User Interface' virtual folder (which IMO is very much more confusing than useful). Fortunately the new stetic doesn't have one.
Comment 3 Greg Munn 2016-12-14 18:41:03 UTC
tried to repro this, I tried to create a widget called "hello.mine.widget".

I ended up with a widget called "hello" and the namespace appeared to be correct. In any event, the name of the widget was wrong. It should at least be using the Safe name of the project and converting the periods to underscores.