Select to view content in your preferred language

No VertexAdded Event

2011
1
Jump to solution
11-18-2014 11:22 AM
KeithMacIntyre
Deactivated User

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
Deactivated User

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
Deactivated User

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