<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Bind a TextBlock to the Map's Resolution in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/bind-a-textblock-to-the-map-s-resolution/m-p/413694#M10729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following code will only work for v2.2 and up:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;TextBlock Text="{Binding ElementName=MyMap, Path=Resolution}" VerticalAlignment="Top" HorizontalAlignment="Center"/&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following code will work for v2.1 and earlier:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;TextBlock x:Name="MyResolution" Text="0" VerticalAlignment="Top" HorizontalAlignment="Center"/&amp;gt;
private void MyMap_ExtentChanged(object sender, ExtentEventArgs e)
{
 double res = Convert.ToDouble(MyResolution.Text);
 if (res != (sender as Map).Resolution)
 {
&amp;nbsp; res = (sender as Map).Resolution;
&amp;nbsp; MyResolution.Text = res.ToString();
 }
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 18:45:43 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2021-12-11T18:45:43Z</dc:date>
    <item>
      <title>Bind a TextBlock to the Map's Resolution</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/bind-a-textblock-to-the-map-s-resolution/m-p/413693#M10728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone know why this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;TextBlock Text="{Binding Resolution, ElementName=MapMain, Mode=OneWay}" &amp;gt;&amp;lt;/TextBlock&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;produces "NaN" instead of the map's resolution?&amp;nbsp; I tried the same thing with the map's Extent.Width property and it works fine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 16:49:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/bind-a-textblock-to-the-map-s-resolution/m-p/413693#M10728</guid>
      <dc:creator>TedChapin</dc:creator>
      <dc:date>2011-02-22T16:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Bind a TextBlock to the Map's Resolution</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/bind-a-textblock-to-the-map-s-resolution/m-p/413694#M10729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following code will only work for v2.2 and up:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;TextBlock Text="{Binding ElementName=MyMap, Path=Resolution}" VerticalAlignment="Top" HorizontalAlignment="Center"/&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following code will work for v2.1 and earlier:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;TextBlock x:Name="MyResolution" Text="0" VerticalAlignment="Top" HorizontalAlignment="Center"/&amp;gt;
private void MyMap_ExtentChanged(object sender, ExtentEventArgs e)
{
 double res = Convert.ToDouble(MyResolution.Text);
 if (res != (sender as Map).Resolution)
 {
&amp;nbsp; res = (sender as Map).Resolution;
&amp;nbsp; MyResolution.Text = res.ToString();
 }
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:45:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/bind-a-textblock-to-the-map-s-resolution/m-p/413694#M10729</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T18:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Bind a TextBlock to the Map's Resolution</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/bind-a-textblock-to-the-map-s-resolution/m-p/413695#M10730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;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&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where is v2.2 available?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 20:27:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/bind-a-textblock-to-the-map-s-resolution/m-p/413695#M10730</guid>
      <dc:creator>DavidLamb</dc:creator>
      <dc:date>2011-03-02T20:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Bind a TextBlock to the Map's Resolution</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/bind-a-textblock-to-the-map-s-resolution/m-p/413696#M10731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When it becomes available, there should be a link from here: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/index.html"&gt;http://help.arcgis.com/en/webapi/silverlight/index.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;to beta community site: &lt;/SPAN&gt;&lt;A href="https://betacommunity.esri.com/home.html"&gt;https://betacommunity.esri.com/home.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 00:39:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/bind-a-textblock-to-the-map-s-resolution/m-p/413696#M10731</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-03-03T00:39:21Z</dc:date>
    </item>
  </channel>
</rss>

