<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(); } }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.