Change color of SketchEditor graphic

1061
4
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

 

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
4 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

0 Kudos
JoeHershman
MVP Regular Contributor

Thanks, exactly what I was looking for

Thanks,
-Joe
0 Kudos
EricPfirman
New Contributor III

Please update the link.

0 Kudos