ShapeFileFeatureLayer
shapeFileLayer = (ShapeFileFeatureLayer)Map1.StaticOverlay.Layers["CitiesLayer"];
shapeFileLayer.Open();
shapeFileLayer.FeatureSource.BeginTransaction();
shapeFileLayer.FeatureSource.UpdateFeature(feature);
shapeFileLayer.FeatureSource.CommitTransaction();
Get Exaption:
File access error, you should open the shape file with ReadWrite mode.
How to open it?