AnsweredAssumed Answered

Disable Legend Check Box For FeatureLayer (No IsInScaleRange)?

Question asked by rcoodey on Feb 3, 2012
Latest reply on Feb 7, 2012 by rcoodey
I just upgraded our code base from using 2.2 to 2.4 of the ArcGIS WPF API.  I really like that the map now has a Scale property and that Feature Layers obey the scales set in the service.  So thanks for that!

My question/issue now is the legend does not show the check box grayed out for service layers (feature layers) in the legend.  I have the legend setup pretty much like the Silverlight example but in a control template (I actually made my own check box that only grays out and doesn't disable, but same concept/issue):

<CheckBox Content="{Binding Label}"     IsChecked="{Binding IsEnabled, Mode=TwoWay}"     IsEnabled="{Binding IsInScaleRange}" > </CheckBox>

Now that Feature Layers obey their scale, I would like to disable their checkbox too, but IsInScaleRange doesn't exist...  Any ideas on how to do this?  Only thing I can think of is to derive a new layer from FeatureLayer and make a property that returns if in scale range.

Thanks a lot for any help!