Edit and sync features

This sample demonstrates how to synchronize offline edits with a feature service.

Edit and sync features


  1. Pan and zoom to the area you would like to download features for, ensuring that all features are within the rectangle.
  2. Tap the 'generate' button. This will start the process of generating the offline geodatabase.
  3. Tap on a point feature within the area of the generated geodatabase. Then tap on the screen (anywhere within the range of the local geodatabase) to move the point to that location.
  4. Tap the 'Sync Geodatabase' button to synchronize the changes back to the feature service. Note that the basemap for this sample is downloaded from ArcGIS Online automatically.


<UserControl x:Class="ArcGISRuntime.WPF.Samples.EditAndSyncFeatures.EditAndSyncFeatures"
             d:DesignHeight="300" d:DesignWidth="300">
        <esri:MapView x:Name="MyMapView" GeoViewTapped="GeoViewTapped" />
                Background="White" BorderBrush="Black" BorderThickness="1"
                HorizontalAlignment="Right" VerticalAlignment="Top"
                Margin="30" Padding="20" Width="375">
                <Button Content="Generate Geodatabase" Click="GenerateButton_Clicked" x:Name="MyGenerateButton" IsEnabled="False" />
                <Button Content="Sync Geodatabase" Click="SyncButton_Click" IsEnabled="False" x:Name="MySyncButton" />
                <ProgressBar x:Name="MyProgressBar" Visibility="Collapsed" MinHeight="10" />
                <Label Foreground="Red" x:Name="MyHelpLabel">1. Click 'Generate Geodatabase'</Label>

In this topic
  1. Instructions
  2. Code