I have an application that dynamically creates a feature layer if the corresponding layer in a dynamic service is made visible.
I understand how to create a custom control template and set the fill, etc. However, what I'd like to do is inherit the feature layer's existing symbology, then modify specific aspects of it.
For example, I have a yellow polygon with a red boundary. When moused over, I'd like the red boundary to expand in thickness, and I'd like for the opacity of the yellow fill to "darken". As I have many feature layers, I'd rather not hand-create a renderer for each one.
Should I be looking at the code-behind, instead? I didn't think it was possible to modify the default control template.