I am using the EditGeometry class to edit vertices of the objects. When the user clicks an object they also have the option to change the aRGB-values of an object. When an edit of vertices is finished, I use editor.StopEdit() and when a new color is assigned I assign a new symbol to the graphics object (g.Symbol = newSymbol).Assigning a new color:
SimpleFillSymbol fillSymbol = new SimpleFillSymbol()
{
BorderBrush = new SolidColorBrush(Color.FromArgb(255, 255, 255, 255)),
BorderThickness = 2,
Fill = new SolidColorBrush(Color.FromArgb(argb.alpha, argb.red, argb.green, argb.blue)),
};
g.Symbol = fillSymbol
graphicsLayer.Refresh();
I've got the EditGeometry feature to work now though, I had placed the StopEdit in the wrong place.The only problem now is when assigning a color, as shown above. All other edits are now visible (moving the object on the map, editing vertices, placing new objects interactively).