AnsweredAssumed Answered

Change graphic selection template

Question asked by nviot64 on Oct 13, 2014
Latest reply on Oct 16, 2014 by MBranscomb-esristaff

Hi everyone,

 

I'm trying to change the selection template of a layer without success...

 

What I've donne :

  • In view :

<esri:GraphicsLayer ID="LinesLayer" MouseLeftButtonDown="LinesLayer_MouseLeftButtonDown" x:Name="_grl_line" SelectionColor="Transparent">

  • In graphic creation code  :

graphicLine.PropertyChanged += new PropertyChangedEventHandler((o, p) =>

{

    if (p.PropertyName != "Selected") return;

 

    var selectedLine = (Graphic)o;

    selectedLine.Symbol = selectedLine.Selected ? SelectedLineSymbol : DefaultLineSymbol;

});

 

And this is the result :

Sans titre.png

 

There still is a border on my lines objects and I want to hide it...

 

Thanks in advance.

Outcomes