Solved! Go to Solution.
2.I use a color dialog to set the color of border/fill and change opacity, no xaml-defined style.
When changing a layers index in the map, the symbology changes to something completely different
2.I use a color dialog to set the color of border/fill and change opacity, no xaml-defined style.
How to do change the color? Are you changing the symbol (i.e creating a new symbol for each color) or are you changing an attribute value that is binded to the border color by your custom symbol?
Depending on how it's done, setting RendererTakesPrecedence to false might help.
TextSymbol textSymbol = new TextSymbol() { FontSize = fontSize, Text = textBoxLabel.Text, Foreground = new SolidColorBrush(Color.FromArgb(255, argb.red, argb.green, argb.blue)) }; Graphic textLabel = new Graphic() { Symbol = textSymbol, Geometry = mapPoint };