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 20, 2022
适用范围ArcGIS Runtime SDK for WPF
找到的版本10.2.3
Version FixedQ1 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

从 ArcGIS 专家处获得帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项

发现关于本主题的更多内容