Wishing to only display visible sub layers in the legend control from a local dynamic map service using local server. Looking through the source code of the toolkit has not yielded a solution as of yet.
In addition, the scale binding does not seem to be working i.e.:
<esriTK:Legend x:Name="mapLegend" Scale="{Binding ElementName=MyMapView, Path=Scale}" Layers="{Binding ElementName=MyMapView, Path=Map.Layers}"
ShowOnlyVisibleLayers="True" />
I have deployed the toolkit source code locally and am now referencing it in my WPF App.
Thank you for any help on this...