<TextBlock Text="{Binding Resolution, ElementName=MapMain, Mode=OneWay}" ></TextBlock>
I think you have it correctly if your map control is named "MapMain". However, v2.1 and earlier do not support Binding for "Resolution", this is new to v2.2
<TextBlock Text="{Binding ElementName=MyMap, Path=Resolution}" VerticalAlignment="Top" HorizontalAlignment="Center"/>
<TextBlock x:Name="MyResolution" Text="0" VerticalAlignment="Top" HorizontalAlignment="Center"/> private void MyMap_ExtentChanged(object sender, ExtentEventArgs e) { double res = Convert.ToDouble(MyResolution.Text); if (res != (sender as Map).Resolution) { res = (sender as Map).Resolution; MyResolution.Text = res.ToString(); } }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.