Select to view content in your preferred language

Running a custom tool from a DockPanel

02-05-2022 08:34 PM
Occasional Contributor

I want to put some custom maptools into a dockpanel addin. I have found how to do this and run it from an RelayCommand and it works using the little bit of code below, but I was wondering about the parameter that you can pass to the tool. Can this be anything? If so, how do I get at it from within my maptool?


      IPlugInWrapper pWrapper = FrameworkApplication.GetPlugInWrapper("PukaWai_GetFeatTool");
      if (pWrapper is ICommand toolCmd)
       // toolCmd.Execute(null);


0 Kudos
0 Replies