Hi,We're trying to create a custom marker symbol that would have an icon, one label on top and one label on the bottom. Pretty standard. However, since the labels or icons can have variable sizes, how would you declare the symbol control template so that the icon's center sits where the MapPoint is? The behavior we see is that the whole control container is aligned at the UpperLeft corner. We could use translation, but we don't know the size of the text until the text is set. Are we missing something obvious?Our template looks like this:
<esri:MarkerSymbol x:Key="SquareMarkerSymbol">
<esri:MarkerSymbol.ControlTemplate>
<ControlTemplate>
<Grid HorizontalAlignment="Center" VerticalAlignment="Center">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Border Background="Blue" Grid.RowSpan="3" />
<TextBlock Text="text 1" Grid.Row="0" Foreground="White" HorizontalAlignment="Center" />
<Border Background="Green" Grid.Row="1" Width="48" Height="48" />
<TextBlock Text="text 2" Grid.Row="2" Foreground="White" HorizontalAlignment="Center" />
</Grid>
</ControlTemplate>
</esri:MarkerSymbol.ControlTemplate>
</esri:MarkerSymbol>
Any help would be greatly appreciated.Thanks,Ed