Select to view content in your preferred language

ArcGis For Windows Mobile 10.1.1 SketchCollectionMethod is missing

2391
0
12-08-2013 09:25 PM
JérémiePedoia
Occasional Contributor
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

Source

and this one:
The Sketch geometry collection method, however, cannot be removed.

from here.

Any help will be very kind.
Thanks in advance.
Regards.
J.
0 Kudos
0 Replies