Hi there, I'm using the standard esri snippet for building my legend:
<esri:Legend x:Name="TheLegend" Width="212" Height="231" Map="{Binding ElementName=Map}" LayerItemsMode="Tree" LayerIDs="Layer1, Layer2, Layer3" ShowOnlyVisibleLayers="False">
<esri:Legend.MapLayerTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Label}"/>
<Slider Maximum="1" Value="{Binding Layer.Opacity, Mode=TwoWay}" Width="50" />
</StackPanel>
</DataTemplate>
</esri:Legend.MapLayerTemplate>
<esri:Legend.LayerTemplate>
<DataTemplate>
<StackPanel>
<TextBlock Text="{Binding Label}"/>
</StackPanel>
</DataTemplate>
</esri:Legend.LayerTemplate>
</esri:Legend>
Looking at fiddler, when the legend attempts to build, it makes a call to a service that ESRI hosts, and this service wants to make a call to my arcgis server, something it won't be able to do due to the fact that my server is not externally facing.htp://www.arcgis.com/sharing/tools/legend?soapUrl=myservice'sNonRestUrl{"error":{"code":500,"message":"Unable to generate legends: lonoap05\nUnable to connect to Host: lonoap05...............So my question is, how do I take advantage of the new Legend Service at 10.0 sp1 so that the call to create the legend doesnt go via ESRI's service? and how do I implement this in my xaml? It seems that the <esri:Legend.MapLayerTemplate> (from the toolkit) defaults to using the ESRI legend generator service.Thanks for any help you could provide me, and others I would imagine.Mike