<?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: Locator results issue after upgrade(s) in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/locator-results-issue-after-upgrade-s/m-p/301363#M7761</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;that's the ticket.&amp;nbsp; I couldn't find that change in any documentation so thanks a lot, dominique!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jun 2010 14:55:11 GMT</pubDate>
    <dc:creator>LanceCrumbliss</dc:creator>
    <dc:date>2010-06-04T14:55:11Z</dc:date>
    <item>
      <title>Locator results issue after upgrade(s)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/locator-results-issue-after-upgrade-s/m-p/301359#M7757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;after the upgrade to the v2 beta or VS2010 - i'm not sure which one is causing the issue - a textblock in XAML as such&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; &amp;lt;Popup x:Name="locationResultsPopUp" IsOpen="True" HorizontalAlignment="Left" VerticalAlignment="Top"&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;ListBox x:Name="locationResults" Background="White"&amp;nbsp; SizeChanged="locationResults_SizeChanged"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SelectionChanged="locationResults_SelectionChanged" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Visibility="Collapsed"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LostFocus="locationResults_LostFocus"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ListBox.ItemTemplate&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DataTemplate&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;lt;TextBlock Foreground="#002969" FontSize="9" Text="{Binding [Descr]}"/&amp;gt;&lt;/STRONG&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/DataTemplate&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ListBox.ItemTemplate&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/ListBox&amp;gt;
&amp;nbsp; &amp;lt;/Popup&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;no longer will display the value of the Descr key of an AddressCandidate. the list box will contain the correct number of items...i can tell by the height of it. however, what should be the Descr key of the AddressCandidates is not displayed on each line of the listbox. What has changed?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:18:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/locator-results-issue-after-upgrade-s/m-p/301359#M7757</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2021-12-12T16:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Locator results issue after upgrade(s)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/locator-results-issue-after-upgrade-s/m-p/301360#M7758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Difficult to answer without seeing your code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess the ItemsSource is initialized by code. It should be initialized to a collection of Dictionary.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From your description it looks like it's well initialized to a collection (because you see the correct number of item).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But either the item is not a dictionary or the key "Descr" is not existing in the dictionary.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 08:25:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/locator-results-issue-after-upgrade-s/m-p/301360#M7758</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-06-04T08:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Locator results issue after upgrade(s)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/locator-results-issue-after-upgrade-s/m-p/301361#M7759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Difficult to answer without seeing your code.&lt;BR /&gt;&lt;BR /&gt;I guess the ItemsSource is initialized by code. It should be initialized to a collection of Dictionary.&lt;BR /&gt;&lt;BR /&gt;From your description it looks like it's well initialized to a collection (because you see the correct number of item).&amp;nbsp; &lt;BR /&gt;But either the item is not a dictionary or the key "Descr" is not existing in the dictionary.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This code and the XAML above worked just fine before the upgrade.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; Private Sub LocatorTask_AddressToLocationsCompleted(ByVal sender As Object, ByVal args As AddressToLocationsEventArgs)

&amp;nbsp; Dim FullList As List(Of AddressCandidate) = args.Results
&amp;nbsp; Dim returnedCandidates As New List(Of AddressCandidate)

&amp;nbsp; For Each AddressCandidate As AddressCandidate In FullList
&amp;nbsp;&amp;nbsp; If (AddressCandidate.Attributes("State") = "Louisiana" Or AddressCandidate.Attributes("State") = "Texas") Then
&amp;nbsp;&amp;nbsp;&amp;nbsp; returnedCandidates.Add(AddressCandidate)
&amp;nbsp;&amp;nbsp; End If
&amp;nbsp; Next


&amp;nbsp; If returnedCandidates.Count = 1 Then
&amp;nbsp;&amp;nbsp; Dim best As AddressCandidate = returnedCandidates(0)

&amp;nbsp;&amp;nbsp; Dim env As New Envelope() With {.XMin = Double.Parse(best.Attributes("West_Lon").ToString(), CultureInfo.InvariantCulture), _
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .YMin = Double.Parse(best.Attributes("South_Lat").ToString(), CultureInfo.InvariantCulture), _
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .XMax = Double.Parse(best.Attributes("East_Lon").ToString(), CultureInfo.InvariantCulture), _
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .YMax = Double.Parse(best.Attributes("North_Lat").ToString(), CultureInfo.InvariantCulture)}

&amp;nbsp;&amp;nbsp; Dim MyDescr As String = best.Attributes("Descr").ToString.Replace(", United States", "")
&amp;nbsp;&amp;nbsp; locationTextBox.Text = MyDescr
&amp;nbsp;&amp;nbsp; env = env.GeographicEnvToWebMercatorEnv 'Extension Method
&amp;nbsp;&amp;nbsp; Map.ZoomTo(env)
&amp;nbsp; ElseIf returnedCandidates.Count &amp;gt; 1 Then
&amp;nbsp;&amp;nbsp; locationResults.Visibility = Visibility.Visible
&amp;nbsp;&amp;nbsp; locationResults.ItemsSource = returnedCandidates
&amp;nbsp; Else
&amp;nbsp;&amp;nbsp; locationTextBox.Text = "Location Not Found (LA/TX)"
&amp;nbsp; End If
 End Sub&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:27:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/locator-results-issue-after-upgrade-s/m-p/301361#M7759</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2021-12-11T14:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Locator results issue after upgrade(s)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/locator-results-issue-after-upgrade-s/m-p/301362#M7760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;{Binding [Descr]} should be replaced by&amp;nbsp; {Binding Attributes[Descr]} (your item is not a dictionary by itself)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 12:09:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/locator-results-issue-after-upgrade-s/m-p/301362#M7760</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-06-04T12:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Locator results issue after upgrade(s)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/locator-results-issue-after-upgrade-s/m-p/301363#M7761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;that's the ticket.&amp;nbsp; I couldn't find that change in any documentation so thanks a lot, dominique!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 14:55:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/locator-results-issue-after-upgrade-s/m-p/301363#M7761</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2010-06-04T14:55:11Z</dc:date>
    </item>
  </channel>
</rss>

