While developing the designer keeps expanding the namespace. Where it should simply instantiate Class1
, it is expanding the instantiation to Namespace.Class1
.
Is there a way of preventing this behavior? Namespace
is a multi-dotted default.
Join Stack Overflow to learn, share knowledge, and build your career.
While developing the designer keeps expanding the namespace. Where it should simply instantiate Class1
, it is expanding the instantiation to Namespace.Class1
.
Is there a way of preventing this behavior? Namespace
is a multi-dotted default.
Your question is not clear enough, what platform/UI do your app use?
If you develop ASP.NET, the control/component is registered using register tag, but the file designer.vb or the designer.cs will still contain full namespace.
If you develop Windows Forms, the control/component will always have full namespace in the designer.vb and designer.cs.
If you develop WPF/Silverlight, the XAML file will directly display only the class name of the control you use, but the generated g.cs or g.vb will display complete/full namespace.
This is the default behavior of Visual Studio designer, whether ASP.NET, WPF/Silverlight, Windows Forms.
There's nothing you can do to change this, unless you created the UI WITHOUT designer support, such as creating a pure Window in WPF or Form in Windows Forms purely by code.
Class can not be instantiated cause it cant be found in <namespace>, blah blah blah
. Which all the references in the project are correct (included both as a DLL and as imported namespace). Just funny when looking that it does a FQN instantiation vs the lowest common denominator. If it was FQN'd it shouldnt post an error in the list, which is the source of my questions.
– GoldBishop
Jan 10 '13 at 13:03