void GeometryService_BufferLineCompleted(object sender, GraphicsEventArgs args) { // Create new graphic to contain geometry of buffer Graphic bufferGraphic = new Graphic(); bufferGraphic.Geometry = args.Results[0].Geometry; // Retrieve the Projects featurelayer from the application FeatureLayer projects = MyMap.Layers["Projects_Edit"] as FeatureLayer; // Add the buffered line graphic to the featurelayer if (projects != null) { projects.Graphics.Add(bufferGraphic); } }
Solved! Go to Solution.