I am currently trying to clear all the geometry drawn on the sketchGraphic Layer using the following code:
currentGraphicLayer.Geometry.Clear();
currentGraphicLayer.GeometryBag.Clear();
where currentGraphic layer is a sketchGraphicLayer to which I add my geometries;
However, not all geometries are cleared. Some are still seen on the map and when I draw the next geometry (polygon), it gets cleared. Is there something I am missing. Any help would be appreciated.
Thanks!