<?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: Layer Column Names to Dropdown in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layer-column-names-to-dropdown/m-p/463879#M11948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;jenniferdnery- Thanks for the sample. I will give that a try.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Feb 2012 15:07:34 GMT</pubDate>
    <dc:creator>BrianLeroux</dc:creator>
    <dc:date>2012-02-22T15:07:34Z</dc:date>
    <item>
      <title>Layer Column Names to Dropdown</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layer-column-names-to-dropdown/m-p/463876#M11945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to get the column names of a dynamic map service into a drop down. What i am trying to do is build a tool that would allow me to select a field name from the drop down and enter a search term for that field to filter the layer. Any help is appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 13:51:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layer-column-names-to-dropdown/m-p/463876#M11945</guid>
      <dc:creator>BrianLeroux</dc:creator>
      <dc:date>2012-02-15T13:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Column Names to Dropdown</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layer-column-names-to-dropdown/m-p/463877#M11946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To get the list of all fields for all sublayers of a dynamic layer you can try GetAllDetails(,); for a particular sublayer use GetDetails(int,,).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 20:55:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layer-column-names-to-dropdown/m-p/463877#M11946</guid>
      <dc:creator>OrlandoCarvajal</dc:creator>
      <dc:date>2012-02-15T20:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Column Names to Dropdown</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layer-column-names-to-dropdown/m-p/463878#M11947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;XAML&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; &amp;lt;StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Center"&amp;gt;
&amp;nbsp; &amp;lt;ComboBox x:Name="LayerNames"&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;ComboBox.ItemTemplate&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DataTemplate&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding Value.Name}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/DataTemplate&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/ComboBox.ItemTemplate&amp;gt;
&amp;nbsp; &amp;lt;/ComboBox&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;ComboBox x:Name="FieldNames" DataContext="{Binding ElementName=LayerNames, Path=SelectedItem}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ItemsSource="{Binding Value.Fields}"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ComboBox.ItemTemplate&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DataTemplate&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding Name}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/DataTemplate&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/ComboBox.ItemTemplate&amp;gt;
&amp;nbsp; &amp;lt;/ComboBox&amp;gt;
&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code-Behind&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp; var layer = new ArcGISDynamicMapServiceLayer() { Url = "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/MapServer" };
&amp;nbsp;&amp;nbsp; layer.GetAllDetails((a, b) =&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (b != null)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show(b.Message);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LayerNames.ItemsSource = a;
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:36:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layer-column-names-to-dropdown/m-p/463878#M11947</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T20:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Column Names to Dropdown</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layer-column-names-to-dropdown/m-p/463879#M11948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;jenniferdnery- Thanks for the sample. I will give that a try.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 15:07:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/layer-column-names-to-dropdown/m-p/463879#M11948</guid>
      <dc:creator>BrianLeroux</dc:creator>
      <dc:date>2012-02-22T15:07:34Z</dc:date>
    </item>
  </channel>
</rss>

