Is it possible to modify dynamically the ControlTemplate of symbol?

485
2
12-12-2012 03:35 AM
FabienNAPPA
Occasional Contributor
Re : Hi

Is it possible to modify dynamically the ControlTemplate of symbol?

Because I don't want to use shadow effect for my custom legend.

Thank you in advance
Fabiano
0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
Yes, Symbol has a 'ControlTemplate' property that can be set with a new control Template.
Though there is no fined grained API allowing to change an existing ControlTemplate. You have to create a new one from scratch.
0 Kudos
FabienNAPPA
Occasional Contributor
Hi Dominique,

Thank you for you help.

Should I create a new control that inherits from the class symbol?

Or is that the class SymbolDisplay or SymbolPresenter I can get the all data inside template ?

And after is it posible to explore the content with VisualTreeHelper?

Do you have an example, please ?

Thank you in advance,
Fabiano
0 Kudos