I use ArcGIS 10.0 and ArcGIS .net SDK. I created AddIn project which contains Tool:
<Tool id="AddSearchLocationPoint"
class="AddSearchLocationPoint"
category="Add-In Controls"
image="Images\insert.png" />
and DockableWindow:
<DockableWindow id="SearchDockableWindow"
class="SearchDockableWindow"
image="Images\SearchDockableWindow.png">
<InitialPlacement height="360" width="570" state="pinned" position="right" />
</DockableWindow>
The dockableWindow contains WinForm’s HostElement which displays my WPF UserControl. Now I want to add a button to the WPF UserControl which will launch my tool. Do you know a way to raise the event which launches the tool?