private void Initialize()
{
// Hook up the DrawStatusChanged event
MyMapView.DrawStatusChanged += OnDrawStatusChanged;
// Create new Map with basemap
Map myMap = new Map(BasemapType.Topographic, 34.056, -117.196, 4);
// Create uri to the used feature service
var serviceUri = new Uri(
"http://sampleserver6.arcgisonline.com/arcgis/rest/services/DamageAssessment/FeatureServer/0");
// Initialize a new feature layer
ServiceFeatureTable myFeatureTable = new ServiceFeatureTable(serviceUri);
FeatureLayer myFeatureLayer = new FeatureLayer(myFeatureTable);
// Add the feature layer to the Map
myMap.OperationalLayers.Add(myFeatureLayer);
// Provide used Map to the MapView
MyMapView.Map = myMap;
}