How to edit a local feature layer
The following steps assume you have created a WPF application in Visual Studio and are working in the XAML view of the main window (e.g. MainWindow.xaml) of your application.
- Add a local feature layer to the application.
<esri:ArcGISLocalFeatureLayer ID="Disco1" Path="C:\Data\TestData\Zion.mpk" LayerId="2" DisableClientCaching="True" OutFields="*" Mode="OnDemand"/>
- Make the feature layer editable by setting the editable flag to true.
<esri:ArcGISLocalFeatureLayer ID="Disco1" Editable="True" Path="C:\Data\TestData\Zion.mpk" LayerId="2" DisableClientCaching="True" OutFields="*" Mode="OnDemand"/>
- Finally, add the editor widget
<esri:EditorWidget Name="MyEditorWidget" Map="{Binding ElementName=Map}" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="10" Width="300" Height="300" GeometryServiceUrl="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" />
1/27/2015