Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

GetService(XmlEditorService) is coming null

$
0
0

hi,

I am trying to write a custom editor by following http://code.msdn.microsoft.com/xmlwpfdesigner. in the sample in the EditorPane(WindowPane).INitalize method

it is getting instance of XmlEdtitorService as

XmlEditorService es = GetService(typeof(XmlEditorService)) as XmlEditorService;
But in my code, im getting this as null. Even the msdn says that the service can be obtained like this. http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.xmleditor.xmleditorservice.aspx
But i am not able to get this service instance.
Do i have to do something extra so that IServcieProvider.GetService will return me a service of type XmlEditorService.?

singhhome

Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>