Dominique,I'm trying to label points in a feature layer using a custom symbol (a MarkerSymbol with a custom ControlTemplate), and I think you're suggestion, above, is along the lines of what I'm attempting to do.My question relates specifically to data binding: what I'd really like to do is use a binding statement within the XAML of my ControlTemplate to bind to one of my graphics' attributes - such that the label for each feature reflects each feature individually.Here's the XAML I'm using, from the Renderer down to the ControlTemplate:<esri:SimpleRenderer x:Key="AddressPointRenderer_Display">
<esri:SimpleRenderer.Symbol>
<esriSymbols:MarkerSymbol>
<esriSymbols:MarkerSymbol.ControlTemplate>
<ControlTemplate>
<StackPanel Orientation="Vertical">
<Ellipse x:Name="Element" Width="5" Height="5" StrokeThickness="10"
Stroke="Blue">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="SelectionStates">
<VisualState x:Name="Unselected" />
<VisualState x:Name="Selected">
<Storyboard>
<ColorAnimation Storyboard.TargetName="Element"
Storyboard.TargetProperty="(Ellipse.Stroke).(SolidColorBrush.Color)"
To="Cyan" Duration="00:00:0.25"/>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
</Ellipse>
<TextBlock Foreground="DarkGreen" FontWeight="ExtraBold" Margin="0,10,0,0" Text="{Binding [MY_ATTRIBUTE]}" />
</StackPanel>
</ControlTemplate>
</esriSymbols:MarkerSymbol.ControlTemplate>
</esriSymbols:MarkerSymbol>
</esri:SimpleRenderer.Symbol>
</esri:SimpleRenderer>The intent is that TextBlock's Text value should be whatever the "MY_ATTRIBUTE" value is, for each individual feature being rendered.Is it possible to do this, like I'm attempting to do it? The binding fails, so I assume the DataContext is either different than what I expect it to be, or it's nonexistent (aka, I just can't do it this way).Thanks!Brooks