Select to view content in your preferred language

Disable selection and collapse of both LayerTemplate and LegendTemplate of Legend?

1826
1
06-25-2014 11:39 PM
Labels (1)
RachelNeo
New Contributor
I managed to display layer information in the intended layout using LayerTemplate and LegendItemTemplate.

But, there is a small problem.

How do it disable selection and collapse of LayerTemplate and LegendTemplate in Legend using wpf tag?

Thanks for any suggestion.
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
By default the legend control is based on an underlying TreeView.

You can change that by retemplating the legend, for example with a WrapPanel or an Accordion (SL samples but can also be done with WPF).

If you'd rather to keep the TreeView you can retemplate the TreeView itself to hide the expand sign.
0 Kudos