This may be a strange use case, but our Xamarin ArcGIS Runtime mobile application needs to implement the following behavior:
When sketching a polyline or polygon, we want the user to pan the map and use a crosshair and a button to add vertices to the end of the sketch. However, we want the user to be able to use their finger to select and move vertices and to click midpoints to insert vertices (this isn't as important as the click to select and move, however - I'm not sure if that is covered by the AddCommand).
So basically, what we need is a way for CanExecute on the AddCommand to return false when we want it to, but for the other ICommands, they should behave as normal. Ideally, we'll have a switch in the UI to turn this "Touch to add vertex" on and off. Something like: CanExecute && TouchToAddVertex.
However, since the SketchEditor is sealed and the AddCommand is read only, I don't know if there is a way to do this, or if I'm missing anything.
We can make the SketchEditor visible, but not enabled, but that turns off the ability to select and move vertices. We want all the functions except add a vertex to the end on the touch gesture.