ArcGISWindowsPhoneSDK.DrawGraphics.MyDrawObject_DrawComplete C# (CSharp) Method

MyDrawObject_DrawComplete() private method

private MyDrawObject_DrawComplete ( object sender, ESRI args ) : void
sender object
args ESRI
return void
        private void MyDrawObject_DrawComplete(object sender, ESRI.ArcGIS.Client.DrawEventArgs args)
        {
            GraphicsLayer graphicsLayer = MyMap.Layers["MyGraphicsLayer"] as GraphicsLayer;
            ESRI.ArcGIS.Client.Graphic graphic = new ESRI.ArcGIS.Client.Graphic()
            {
                Geometry = args.Geometry,
                Symbol = _activeSymbol,
            };
            graphicsLayer.Graphics.Add(graphic);
        }