Change color of SketchEditor graphic

129
2
Jump to solution
06-22-2021 10:36 AM
JoeHershman
MVP Regular Contributor

Is there any way to change the color of the graphic drawn by the SketchEditor from red to something else?  I do not see any setting for the color of this temp graphic.  I have a client that doesn't like the red because it matches a color used by one the line layers in the map.

Thanks

-joe

 

0 Kudos
1 Solution

Accepted Solutions
PreetiMaske
Esri Contributor

You can set different symbols of sketch graphic by accessing symbols via MyMapView.SketchEditor.Style
e.g
MyMapView.SketchEditor.Style.LineSymbol = someOtherSymbol;

More info
https://developers.arcgis.com/net/wpf/api-reference/html/T_Esri_ArcGISRuntime_UI_SketchStyle.htm

View solution in original post

0 Kudos
2 Replies
PreetiMaske
Esri Contributor

You can set different symbols of sketch graphic by accessing symbols via MyMapView.SketchEditor.Style
e.g
MyMapView.SketchEditor.Style.LineSymbol = someOtherSymbol;

More info
https://developers.arcgis.com/net/wpf/api-reference/html/T_Esri_ArcGISRuntime_UI_SketchStyle.htm

View solution in original post

0 Kudos
JoeHershman
MVP Regular Contributor

Thanks, exactly what I was looking for

0 Kudos