Thanks for replying Wolf,
Good point, it seems I completely misunderstood the loadOnClick="true", thanks for your califrication.
Is it possible to use the custom MapTool directly from my Viewmodel?
For example:
My dockpane xaml has code:
<Button Grid.Row="1" Content="Identify Feature" Command="{Binding IdentifyCommand}"/>
My Viewmodel has Icommand implementation:
protected IdentifyDockpaneViewModel()
{
IdentifyCommand = new RelayCommand(IdentifyClick);
}
public ICommand IdentifyCommand { get; private set; }
private async Task IdentifyClick()
{
CustomIdentify identifyTool = new CustomIdentify ();
... (Some code goes here)
}
It seems the instance would get initiated successfully at line 10 above, but OnSketchCompleteAsync method never got called .. Did I miss something important here?..
thanks!