Selection symbol on GraphicsLayer

2948
2
08-19-2015 03:36 AM
SzymonPiskula
New Contributor

Hi

GraphicsLayer has a property SelectionColor. This is the color of the 'halo' around features/graphics of the layer that have IsSelected to true. Is it possible not to have the halo set for the selected features and only manually maintain the selection symbol? I tried setting .SelectionColor = Colors.Transparent; but this produces the halo to be white. Is there any control around the way how this halo is produced?

Thanks

Szymon

0 Kudos
2 Replies
AnttiKajanus1
Regular Contributor II

It seems that this occurs when you are using GraphicsLayer on Dynamic rendering more. Static rendering mode seems to work. Unfortunately it seems that if you want to use RenderingMode = Dynamic which is default, you will see white halo when using Transparent selection color. As a work around, you can use Static rendering mode if that suits to your use case. I  will log a bug for the dynamic mode.

<esri:GraphicsLayer ID="graphicsLayer" RenderingMode="Static" SelectionColor="Transparent" />

AnttiKajanus1
Regular Contributor II

As a workaround, you can define SelectionColor in code as following to remove white halos

_graphicsLayer.SelectionColor = Color.FromArgb(0, 0, 0, 0);