Hi,Is there a way to control the content of a DataTemplate depending on the value of a map layer label? Below is part of my template. What I want to do is to display an hyperlink for all map layers, but not for the Graphic Layer. So, for all layers, I want to use the Hyperlink control and not show the CheckBox. And for the GraphicLayer, I want to show the CheckBox instead of the Hyperlink control. Is there an easy way to do this?Thanks,Paul
<esri:Legend.MapLayerTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<CheckBox Content="{Binding Label}"
IsChecked="{Binding IsEnabled, Mode=TwoWay}"
IsEnabled="{Binding IsInScaleRange}" >
</CheckBox>
<HyperlinkButton Content="{Binding Label}" TargetName="_new" NavigateUri="http://www.nrcan.gc.ca/">
<ToolTipService.ToolTip>
<StackPanel MaxWidth="400">
<TextBlock FontWeight="Bold" Text="Show Metadata - Opens in new window" TextWrapping="Wrap" />
</StackPanel>
</ToolTipService.ToolTip>
</HyperlinkButton>