AnsweredAssumed Answered

How can I cast to my UserControl type from ICommandItem

Question asked by mik1971 on Jun 21, 2015
Latest reply on Jun 22, 2015 by Ahmed.ElSisiesrinea-esridist

Hi there,

I am trying to get my UserControl be found like this:

 

ICommandItem pItem = pApplication.Document.CommandBars.Find(pUID, false, false);

MyUserControlType pMyTool = pItem.(Command as MyUserControlType);

 

But I cannot see the row with word "Command" (when drop down menu appears - see the image attached).

What I do wrong?

I am in 10.3 Desktop ArcObjects C#.

 

Any help will be appreciated.

Attachments

Outcomes