Thanks, I got that Value Converter now working beautifully.
On my checkbox, I have some extra things to do.
I have another layer (A feature layer of the same item as the map service layer that I have an ONDEMAND MAPTIP that I need to always turn on/off when layer is turned on off..
I now have all this working correctly, very nice.
===========================================
On another subject (probably should open a separate thread) I have issues with the
featurelayer in xaml it is hard to specify symbology, especially if it uses a complex expression based renderer - muche easier to use the symbology from the map service, but then I want to have the on demand map tips, so I have found it easier to have the map services layer using symbology from the map service, and a feature layer (pointing to the same map services layer id
with a null symbology but with the on demand map tip.
Do you know if I am mistaken in my thinking on this???
The other thing, I'd like to also bind Layer.Description or Description (see my xaml)
<esri:Legend.MapLayerTemplate>
<DataTemplate>
<StackPanel Orientation="Vertical" ToolTipService.ToolTip="{Binding Layer.Description, Mode=OneWay}">
<sdk:Label Content="{Binding Label, Converter={StaticResource MapSvcNameConverter}}" />
<StackPanel Orientation="Horizontal">
<sdk:Label Content="Layer Transparency" Margin="2,0,4,0" FontSize="9" FontWeight="Light" Foreground="DarkGray"/>
<Slider Maximum="1" Value="{Binding Layer.Opacity, Mode=TwoWay}" Width="100" />
</StackPanel>
</StackPanel>
</DataTemplate>
</esri:Legend.MapLayerTemplate>
None of these work. In debugging, I also notice that Description is never populated.
I see it in the arcgis/rest/services reference but this does not get populated..
Note: I was debugging the legend refresh event handler and perusing the e.LayerItem
to try and find Description with my value....
Do you know if this is available via the Object Model?