Select to view content in your preferred language

Question about the Measure Tool Sample

650
3
03-17-2011 09:27 AM
deleted-user-ATjHIWsdQYmT
Deactivated User
I have added a measure tool to my toolbar using the sample code (http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#UtilityActions). 

I am wondering how I can keep the tool active until another tool is chosen.  I can successfully measure but when I double-click to end, I have to click the measure tool to start again.  I'd like to be able to simply begin measuring again until I select another tool.

Thanks.
0 Kudos
3 Replies
JenniferNery
Esri Regular Contributor
This is by design, Measure is deactivated
every time MeasureAction is invoked,
when target changes, and
when drawing the feature is completed.

In the sample, notice the following code:
         <i:Interaction.Triggers>
                            <i:EventTrigger EventName="Click">


This is the event that invokes the MeasureAction. I don't know which other event you could use to make MeasureAction be in continuous mode.
0 Kudos
deleted-user-ATjHIWsdQYmT
Deactivated User
Since I'm using an image, I'm triggering the MouseDown event.  The results are the same.  Is there any way to call the event again when the draw is completed?
0 Kudos
JenniferNery
Esri Regular Contributor
0 Kudos