No VertexAdded Event

1751
1
Jump to solution
11-18-2014 11:22 AM
KeithMacIntyre
New Contributor III

We would like to track how many points the user has selected when adding a polyline to the map, in previous versions of the WPF runtime there was a VertexAdded event with the Draw control that we could use.

PropertyChanged on the Editor does not give us this information.

0 Kudos
1 Solution

Accepted Solutions
KeithMacIntyre
New Contributor III

I apologize, I see this was answered in another post:

var progress = new Progress<GeometryEditStatus>();

            progress.ProgressChanged += progress_ProgressChanged;

            var geometry = await MapView.Editor.RequestShapeAsync(DrawShape.Polyline, null, progress);

            progress.ProgressChanged -= progress_ProgressChanged;

View solution in original post

0 Kudos
1 Reply
KeithMacIntyre
New Contributor III

I apologize, I see this was answered in another post:

var progress = new Progress<GeometryEditStatus>();

            progress.ProgressChanged += progress_ProgressChanged;

            var geometry = await MapView.Editor.RequestShapeAsync(DrawShape.Polyline, null, progress);

            progress.ProgressChanged -= progress_ProgressChanged;

0 Kudos