I created my own editor for the WinForms component, which implements UITypeEditor and works fine. The editor should download information from the solution currently open, and I think that this should be done with the DTE from the VisualStudio SDK.
According to the MSDN article ( http://msdn.microsoft.com/en-us/library/ee834473 (v = vs .110) .aspx ) I implemented it exactly like this:
internal class TreeViewTypeEditor : UITypeEditor { [Import] internal SVsServiceProvider ServiceProvider = null; protected override Control GetEditControl(ITypeDescriptorContext context, object value) {
ServiceProvider will always be null, but why? What am I doing wrong?
c # visual-studio winforms
mburtscher
source share