Yes you can include the KML extended data in the maptip, but this needs a few code. The extendeddata are stored as a list of 'KmlExtendedData' in an attribute called 'extendedData'. To access this list, you will need a converter such as this one:
public class ExtendedDataConverter : IValueConverter
{
public object Convert(object value, System.Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
return value is IList<ESRI.ArcGIS.Client.Toolkit.DataSources.Kml.KmlExtendedData>
? ((IList<ESRI.ArcGIS.Client.Toolkit.DataSources.Kml.KmlExtendedData>)value).Where(ed => ed.Name == parameter.ToString()).Select(ed => ed.Value.ToString()).FirstOrDefault()
: value;
}
public object ConvertBack(object value, System.Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
throw new System.NotImplementedException();
}
}
This converter expects the KmlExtendedData list as input and the extended data name as parameter.To use it, you define such a converter in your XAML resources:
<local:ExtendedDataConverter x:Key="extendedDataConverter" />
and you call it in your KML maptip:
<esri:KmlLayer ............ >
<esri:KmlLayer.MapTip>
<TextBlock Text="{Binding [extendedData], Converter={StaticResource extendedDataConverter}, ConverterParameter=myExtendedDataName}" />
</esri:KmlLayer.MapTip>
</esri:KmlLayer>
Hope this helps.