laptop and a wrench

不具合

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

最後に公開された状態: April 9, 2019 ArcGIS Runtime SDK for WPF
不具合 ID 番号 BUG-000082172
送信されましたSeptember 25, 2014
最終更新日June 5, 2024
適用対象ArcGIS Runtime SDK for WPF
見つかったバージョン10.2.3
修正されたバージョンQ1 2015
ステータスFixed

対処法

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;}}

再現の手順

不具合 ID: BUG-000082172

ソフトウェア:

  • ArcGIS Runtime SDK for WPF

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動