Hi Everybody:
I am using a Legend element to list all the layers in a map. However, I don't want the invisible graphic layer to show up in the legend. Is there any way for me to do that?
Following is the code I have now (listing the graphic layer).
================================================
<esri:Legend x:Name="Legend" Map="{Binding ElementName=Map}" LayerItemsMode="Flat" ShowOnlyVisibleLayers="False">
<esri:Legend.MapLayerTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<CheckBox Content="" IsChecked="{Binding IsEnabled, Mode=TwoWay}" ></CheckBox>
<TextBlock Text="{Binding Label}"></TextBlock>
</StackPanel>
</DataTemplate>
</esri:Legend.MapLayerTemplate>
</esri:Legend>
================================================
Thank you.