Solved! Go to Solution.
string polyCoordinate = "2.5,-1 2.5,1 -2.5,1 -2.5,-1 2.5,-1"; ESRI.ArcGIS.Client.Geometry.PointCollectionConverter pointConverter = new ESRI.ArcGIS.Client.Geometry.PointCollectionConverter(); ESRI.ArcGIS.Client.Geometry.PointCollection pointCollection = pointConverter.ConvertFromString(polyCoordinate) as ESRI.ArcGIS.Client.Geometry.PointCollection; //setup the polygon Polygon aoi = new Polygon(); aoi.Rings.Add(pointCollection); BrushConverter brushConv = new BrushConverter(); SimpleFillSymbol symbol = new SimpleFillSymbol(); symbol.BorderBrush = brushConv.ConvertFromString(areaData.Color) as SolidColorBrush; symbol.BorderThickness = 1; symbol.Fill = brushConv.ConvertFromString(areaData.FillColor) as SolidColorBrush; ESRI.ArcGIS.Client.Projection.WebMercator mercator = new ESRI.ArcGIS.Client.Projection.WebMercator(); Graphic polygon = new Graphic(); polygon.Geometry = mercator.FromGeographic(aoi); polygon.Symbol = symbol; graphicsLayer.Graphics.Add(polygon);