Hi - I've added a button to a dockpane that opens a polygon select tool using GetPlugInWrapper . I'd like to be able to be able to access the constructor of the polygon select tool and the sketchcomplete event of the select tool so that I can specify a specific layer in the map to select, and then export the selected features
to a new layer. Would I specify these events in the ViewModel.cs? Do I need to create a new class
for the select tool? I'm just not sure how to hook up with these events. Below is the code I'm using
to fire the select tool when the button is clicked in the dock pane.
Thanks
Pete
Dockpane .xaml
<Button Command="{Binding CmdCreateSelectTool}" Content="Select Area" HorizontalAlignment="Left" Margin="10,10,0,0" Grid.Row="1" VerticalAlignment="Top" Width="75" RenderTransformOrigin="-1.017,-0.75"/>
ViewModel.cs
public ICommand CmdCreateSelectTool =>
FrameworkApplication.GetPlugInWrapper("esri_mapping_selectByPolygonTool") as ICommand;