Hi all,I have put the measure action in code-behind. MyMeasureAction m = new MyMeasureAction(); //initialize a MyMeasureAction class
m.MeasureMode = ESRI.ArcGIS.Client.Actions.MeasureAction.Mode.Polygon; //MeasureMode is polygon
m.DisplayTotals = false; //do not display total distance
m.FillSymbol = LayoutRoot.Resources["DrawFillSymbol"] as FillSymbol;
m.DistanceUnit = ESRI.ArcGIS.Client.Actions.DistanceUnit.Feet;
m.MapUnits = ESRI.ArcGIS.Client.Actions.DistanceUnit.Feet; //the unit of the map is Feet
m.Attach(MyMap); //bind this action to MyMap
m.Execute(); //execute this action
But I don't know which piece of codes show that the measure action is completed. Dose it exist some function like measreCompleted event? I didn't find it in API.Since I want to return the cursor to hand shape and return to pan mode after finishing this measure action, I want to know where I can add the codes....Thank you all!:)