I want to change the fill of polygons, when the user press a button. I am using this to get the render of the layer:
CIMSimpleRenderer currentRenderer = layer.GetRenderer() as CIMSimpleRenderer;
I am saving this render in a dict, to be able to change back later.
I am creating this, I want to alter to change the color of the polygons:
CIMSimpleRenderer newRenderer = layer.GetRenderer() as CIMSimpleRenderer;
I am using this to make a new fill:
var fill = SymbolFactory.Instance.ConstructSolidFill(ColorFactory.Instance.CreateRGBColor(0, 0, 0));
How can I add the fill to the newRender?
For every polygon feature layer in TOC, I want to change the fill color, but retain the outline color.