MeasureAction

3254
1
09-10-2014 11:01 AM
Labels (1)
FrancoisGilbert
New Contributor


Hello,

I would like my measureaction to end with a right click instead of the default double click is this possible. I am using ArcGis runtime for wpf version 1.0.

0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor

Hi Francois,

Double-click to complete the draw for MeasureAction is the default behavior.  If you need draw to be completed by other means, you would have to create your own measure class that will respond to these events. Basically, use the Draw class from the API, subscribe to these events and perform your calculations.

            var draw = new Draw(MyMap);

            draw.DrawBegin += draw_DrawBegin;

            draw.VertexAdded += draw_VertexAdded;

            draw.DrawComplete += draw_DrawComplete;

            draw.IsEnabled = true;

You can then create a command that will call into draw.CompleteDraw() to programmatically complete the draw.

0 Kudos