<?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 Use Distionary Converter in C# code in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/use-distionary-converter-in-c-code/m-p/229984#M5897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear All, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new to the Silverlight development and wanted to get some ideas here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a spatial query (a point buffer -&amp;gt; intersect the parcels -&amp;gt; display the attributes in a DataGrid). To get the attributes displayed correctly, you have to use ESRI Dictionary Converter. My question is How to convert the attributes from graphics in C# codes (in QueryTask_ExecuteCompleted()) instead of using the converter in the XAML file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Appreciate the help in advance. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Sep 2010 12:30:56 GMT</pubDate>
    <dc:creator>ducksunlimited</dc:creator>
    <dc:date>2010-09-22T12:30:56Z</dc:date>
    <item>
      <title>Use Distionary Converter in C# code</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/use-distionary-converter-in-c-code/m-p/229984#M5897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear All, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new to the Silverlight development and wanted to get some ideas here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a spatial query (a point buffer -&amp;gt; intersect the parcels -&amp;gt; display the attributes in a DataGrid). To get the attributes displayed correctly, you have to use ESRI Dictionary Converter. My question is How to convert the attributes from graphics in C# codes (in QueryTask_ExecuteCompleted()) instead of using the converter in the XAML file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Appreciate the help in advance. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 12:30:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/use-distionary-converter-in-c-code/m-p/229984#M5897</guid>
      <dc:creator>ducksunlimited</dc:creator>
      <dc:date>2010-09-22T12:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Use Distionary Converter in C# code</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/use-distionary-converter-in-c-code/m-p/229985#M5898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"To get the attributes displayed correctly, you have to use ESRI Dictionary Converter"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That is not correct. The Dictionary Converter was only necessary with Silverlight 3. It is not needed any longer and should be considered obsolete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The binding expression is simply (assuming the graphic is the datacontext):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;TextBlock Text="{Binding Attributes[AttributeName]}" /&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 18:12:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/use-distionary-converter-in-c-code/m-p/229985#M5898</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-09-22T18:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Use Distionary Converter in C# code</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/use-distionary-converter-in-c-code/m-p/229986#M5899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;"To get the attributes displayed correctly, you have to use ESRI Dictionary Converter"&lt;BR /&gt;That is not correct. The Dictionary Converter was only necessary with Silverlight 3. It is not needed any longer and should be considered obsolete.&lt;BR /&gt;The binding expression is simply (assuming the graphic is the datacontext):&lt;BR /&gt;&amp;lt;TextBlock Text="{Binding Attributes[AttributeName]}" /&amp;gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply. Yes, your codes worked. However, when I exported the data contents into a .csv file, it gave me only "ESRI.ArcGIS.Client.Graphic". I guess the Dictionaly Converted still is needed. I can put the ESRI Dictionary Converter in the XAML file, however the Export to Excel won't work. I am asking if I can use Dictionary Converter within C# code behind and how. Any idea? Thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 18:55:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/use-distionary-converter-in-c-code/m-p/229986#M5899</guid>
      <dc:creator>ducksunlimited</dc:creator>
      <dc:date>2010-09-24T18:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Use Distionary Converter in C# code</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/use-distionary-converter-in-c-code/m-p/229987#M5900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sounds more like an issue with how you are exporting the data to CSV. However you're doing that, I doubt a dictionary converter would be of any use (it's use is for accessing dictionary values from XAML prior to SL4).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Sep 2010 04:11:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/use-distionary-converter-in-c-code/m-p/229987#M5900</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-09-26T04:11:46Z</dc:date>
    </item>
  </channel>
</rss>

