Hopefully a simple one - I've used the 'Legend with Templates' sample code to add a legend, and it's working well.The default text in the legend was black but I've managed to change the font to white for both the name of each map service and for each individual layer within those, using 'Foreground="White"' in the XAML code below:
<esri:Legend Map="{Binding ElementName=MyMap}"
LayerItemsMode="Tree"
ShowOnlyVisibleLayers="False"
Refreshed="Legend_Refreshed"
Name="MyLegend"
Background="Transparent"
BorderThickness="0"
Foreground="White" >
<esri:Legend.MapLayerTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<CheckBox Content="{Binding Label}"
IsChecked="{Binding IsEnabled, Mode=TwoWay}"
IsEnabled="{Binding IsInScaleRange}"
Foreground="White">
</CheckBox>
<Slider Maximum="1" Value="{Binding Layer.Opacity, Mode=TwoWay}" Width="50" />
</StackPanel>
</DataTemplate>
</esri:Legend.MapLayerTemplate>
<esri:Legend.LayerTemplate>
<DataTemplate>
<CheckBox Content="{Binding Label}"
IsChecked="{Binding IsEnabled, Mode=TwoWay}"
IsEnabled="{Binding IsInScaleRange}"
Foreground="White" >
</CheckBox>
</DataTemplate>
</esri:Legend.LayerTemplate>
</esri:Legend>
What I can't seem to manage is to make the font white when you expand a layer and view the symbology for that layer (please see attached image). Does anyone know how I would achieve this, assuming it's possible? Thanks a lot.