Select to view content in your preferred language

Migrate ArcGIS Mobile for Windows Code from 10.0 to 10.1

1010
1
Jump to solution
09-15-2013 06:26 PM
HenryKo
Deactivated User
Hi,

I am migrating a custom extension (for Windows tablets) from 10.0 to 10.1 (which is SDK version 10.1.1). I have the following code which I haven't been able to compile. The API documentation is poorly documented and couldn't find much on the Internet and in the ESRI samples.

I am trying to convert the "ControlCreatingFeatureAttributes" event listener to 10.1.1, but have not had much luck (the C# version is commented out, the VB.NET version is uncommented):

            'EditFeatureAttributesPage.ControlCreatingFeatureAttributes += New EventHandler(Of EditFeatureAttributesPageEventArgs)(AddressOf EditFeatureAttributesPage_ControlCreatingFeatureAttributes)             AddHandler EditFeatureAttributesPage.ControlCreatingFeatureAttributes, AddressOf EditFeatureAttributesPage_ControlCreatingFeatureAttributes


Also, I haven't been able to convert the "GeometryCollectionStarted" event listener either (C# and VB.NET lines provided below):

                'm_collectFeatureTask.GeometryCollectionStarted += New EventHandler(Of GeometryCollectionStartedEventArgs)(AddressOf CollectFeaturesTask_GeometryCollectionStarted)                 AddHandler m_collectFeatureTask.GeometryCollectionCompleted, AddressOf CollectFeaturesTask_GeometryCollectionCompleted


Any help is appreciated.

Thanks.
0 Kudos
1 Solution

Accepted Solutions
HenryKo
Deactivated User
OK, so there are some important changes from 10.0 to 10.1:

For the "ControlCreatingFeatureAttributes" event, it is now with AttributeEditControl in 10.1 as opposed to "EditFeatureAttributesPage" in 10.0:

AddHandler AttributeEditControl.ControlCreatingFeatureAttributes, AddressOf EditFeatureAttributesPage_ControlCreatingFeatureAttributes


For the "GeometryCollectionStarted" event, because in 10.1 the feature collection workflow is very different to 10.0, this event does not apply anymore. In 10.0, collect actual geometry and edit attributes are completely different tasks as part of the feature collection workflow, whereas in 10.1 the two are bit more integrated (less mouse clicks).

I might have missed it, but it would be good if ESRI mobile team can include some upgrade notes in their API to outline these important changes (some other ESRI API tells you how to compile code from older version to newer version).

View solution in original post

0 Kudos
1 Reply
HenryKo
Deactivated User
OK, so there are some important changes from 10.0 to 10.1:

For the "ControlCreatingFeatureAttributes" event, it is now with AttributeEditControl in 10.1 as opposed to "EditFeatureAttributesPage" in 10.0:

AddHandler AttributeEditControl.ControlCreatingFeatureAttributes, AddressOf EditFeatureAttributesPage_ControlCreatingFeatureAttributes


For the "GeometryCollectionStarted" event, because in 10.1 the feature collection workflow is very different to 10.0, this event does not apply anymore. In 10.0, collect actual geometry and edit attributes are completely different tasks as part of the feature collection workflow, whereas in 10.1 the two are bit more integrated (less mouse clicks).

I might have missed it, but it would be good if ESRI mobile team can include some upgrade notes in their API to outline these important changes (some other ESRI API tells you how to compile code from older version to newer version).
0 Kudos