laptop and a wrench

Erro

MapControl properties bound to text elements fail to update when zooming in an ArcGIS Runtime SDK for WPF application.

Última Publicação: April 9, 2019 ArcGIS Runtime SDK for WPF
Número de ID do Erro BUG-000082172
EnviadoSeptember 25, 2014
Última ModificaçãoAugust 1, 2025
Aplica-se àArcGIS Runtime SDK for WPF
Versão encontrada10.2.3
Versão FixaQ1 2015
StatusFixed

Solução Provisória

1. Manually update the text shown in the application by listening for the ExtentChanged property of the map.2. Write a value converter, to bind the Map.Extent to, but pass the map's instance as a converter parameter to the class and return the scale as the value.3. Wrap the map. For example:<TextBlock x:Name="ScaleText" Text="{ Binding ElementName=MyMap, Path=Extent, Converter={StaticResource SC}, ConverterParameter={x:Reference Name=MyMap}}" FontSize="12" FontWeight="Bold" Foreground="Black"/>public class SC : IValueConverter{public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture){double scale = 0.0;if (parameter is Map) scale = ((Map)parameter).Scale;return scale;}public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture){return value;}}

Etapas para Reproduzir

ID do Erro: BUG-000082172

Software:

  • ArcGIS Runtime SDK for WPF

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download