Hi,I am facing an issue while trying to listen GeometryCollectionProgress.On my CollectFeatureTask.CollectionStarted, I wish declare GeometryCollectionProgressEvent.Here is my simplifiyed code:
private CollectFeaturesTask _collectFeaturesTask;
protected override void OnOwnerInitialized()
{
{
_collectFeaturesTask = MobileApplication.Current.FindTask(typeof(CollectFeaturesTask)) as CollectFeaturesTask;
if (_collectFeaturesTask != null)
{
_collectFeaturesTask.CollectionStarted += new EventHandler(_collectFeaturesTask_CollectionStarted);
_collectFeaturesTask.CollectionCompleted += new EventHandler<CompletedEventArgs>(_collectFeaturesTask_CollectionCompleted);
}
}
}
void _collectFeaturesTask_CollectionStarted(object sender, EventArgs e)
{
_collectFeaturesTask.EditFeatureAttributesPage.GeometryCollectionViewModel.GeometryCollectionMethods[0].GeometryCollectionProgress += new EventHandler<GeometryCollectionMethodsEventArgs>(GeometryCollectionProgress);
}
void GeometryCollectionProgress(object sender, GeometryCollectionMethodsEventArgs e)
{
//Do something with the sketch geometry when GeometryCollectionProgress is over
}
I do not understand why GeometryCollectionMethods is limited to GPSVertex (not working by the way).The SketchCollectionMethod is missing despite this Arcgis Help extract :By default, it contains the following built-in geometry collection methods:
Sketch
GPSVertex
Streaming
Sourceand this one:The Sketch geometry collection method, however, cannot be removed.
from here.Any help will be very kind.Thanks in advance.Regards.J.