When drawing a line I want to fire the DrawComplete event after the user clicks a second point, essentially overriding the double-click to end drawing.
this is VB -
it is my understanding that you can finr the event just by doing this: GraphicDrawObject_DrawComplete(Nothing, arg)
the issue is I can't set the geometry of the DrawEventArgs - I get something like this: set accessor of property is not accessible
The documentation say that is is a setable property - below is the code I am tryinh
Dim pl As ESRI.ArcGIS.Client.Geometry.Polyline = New ESRI.ArcGIS.Client.Geometry.Polyline() pl.SpatialReference = MainMap.SpatialReference pl.Paths.Add(ptsCurrent) Dim arg As ESRI.ArcGIS.Client.DrawEventArgs = New ESRI.ArcGIS.Client.DrawEventArgs()