My scenario is very similar to Shawn Burke article "Make Your Components
Really RAD..."
(
http://msdn.microsoft.com/library/de...-us/dndotnet/h
tml/vsnetpropbrow.asp)
I got everything working fine until I decided to not use anymore an extra
PropertyTab to hold a property using a custom UITypeEditor.
Nothing happens, the dropdown editor doesnt show anymore.
It seems like I don't know how to recreate the "connection" again.
What am I missing?
Here's my scenario:
class Entidade{
[Editor(typeof(AnguloPlanoUIEditor),
typeof(System.Drawing.Design.UITypeEditor))]
public double AnguloPlano {
get {}
set {}
}
}
//*************
public class AnguloInclUIEditor : System.Drawing.Design.UITypeEditor {
Modulo m_target;
AnguloInclEditorCtrl m_ui;
public AnguloInclUIEditor(Modulo target) {
m_target = target;
}
public override object EditValue(ITypeDescriptorContext context,
IServiceProvider sp, object value) {
...
return m_ui.Angulo.Degradianos;
}
}
//**********************
public class AnguloPlanoEditorCtrl : System.Windows.Forms.UserControl {
private Modulo m_target;
.....
}