<?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: Show identify in a dataform in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84637#M2048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This sample &lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Identify" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Identify&lt;/A&gt; assumes that the IdentifyComboBox will contain titles and IdentifyDetailsDataGrid will contain the feature attributes. This sample uses DataItem class to update the IdentifyDetailsDataGrid source on IdentifyComboBox SelectionChanged event.&lt;BR /&gt;&lt;BR /&gt;You need to update the XAML-code for IdentifyDetailsDataGrid and replace it with your own data form. You also need to know which layer the feature belongs to in order to know the fields you need for Binding.&lt;BR /&gt;For example:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel Orientation="Horizontal"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="State Name: "/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [STATE_NAME]}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Jenn. For purposes of development and debugging (trying to figure this out) I have both datagrid and dataform on the the page. The datagrid is setup per the esri sample and it works OK. The dataform looks like this.&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;toolkit:DataForm x:Name="IdentifyDataForm2" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoGenerateFields="False"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsReadOnly="True"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsEnabled="True"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LabelPosition="Left"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Height="150"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VerticalAlignment="Top"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel Orientation="Horizontal"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="Name: "/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [ST_NAME]}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/toolkit:DataForm&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The data is triggered by the combobox in the sample.&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;void cb_SelectionChanged(object sender, SelectionChangedEventArgs e)
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp; int index = IdentifyComboBox.SelectedIndex;
&amp;nbsp;&amp;nbsp; if (index &amp;gt; -1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; IdentifyDetailsDataGrid.ItemsSource = _dataItems[index].Data;
&amp;nbsp;&amp;nbsp;&amp;nbsp; IdentifyDataForm2.ItemsSource = _dataItems[index].Data ;&amp;nbsp;&amp;nbsp; ////////////////////////////////

&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;SPAN&gt; Note both controls are looking at the same data. However while the datagrid displays properly, the dataform displays only the textblock containing the label and not the one containing the data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 23:14:54 GMT</pubDate>
    <dc:creator>DonFreeman</dc:creator>
    <dc:date>2021-12-10T23:14:54Z</dc:date>
    <item>
      <title>Show identify in a dataform</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84632#M2043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to present the result of an identify query in a dataform rather than a datagrid so that I can control the layout and formatting. Does anyone have a sample of how this would be constructed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 19:54:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84632#M2043</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2011-03-09T19:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Show identify in a dataform</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84633#M2044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use your own UserControl for this and set its DataContext to IdentifyResults.Feature.Attributes. &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.IdentifyResult_members.html"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.IdentifyResult_members.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your UserControl can include TextBlocks and/or TextBoxes with Text="{Binding Field}".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 21:14:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84633#M2044</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-03-09T21:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Show identify in a dataform</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84634#M2045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jenn. That would make sense except when I place the bolded line into a block of working code it objects to Feature and says there is no definition for feature in IdentifyResults.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; private void IdentifyTask_ExecuteCompleted(object sender, IdentifyEventArgs args)
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp; IdentifyDetailsDataGrid.ItemsSource = null;

&amp;nbsp;&amp;nbsp; if (args.IdentifyResults != null &amp;amp;&amp;amp; args.IdentifyResults.Count &amp;gt; 0)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; IdentifyResultsPanel.Visibility = Visibility.Visible;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;IdentifyDataForm2.DataContext = args.IdentifyResults.Feature.Attributes ;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShowFeatures(args.IdentifyResults);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; else
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; IdentifyComboBox.Items.Clear();
&amp;nbsp;&amp;nbsp;&amp;nbsp; IdentifyComboBox.UpdateLayout();
&amp;nbsp;&amp;nbsp;&amp;nbsp; IdentifyResultsPanel.Visibility = Visibility.Collapsed;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:14:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84634#M2045</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2021-12-10T23:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Show identify in a dataform</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84635#M2046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jenn -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can create a connection to the data with this line&lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;IdentifyDataForm2.ItemsSource = feature.Attributes; &lt;/PRE&gt;&lt;SPAN&gt; but the attribute data appears as a list of name/value pairs and so the dataform only displays the first pair. Is there a way to get the all the attributes together so they will all show in the dataform?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 15:37:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84635#M2046</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2011-03-10T15:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Show identify in a dataform</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84636#M2047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This sample &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Identify" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Identify&lt;/A&gt;&lt;SPAN&gt; assumes that the IdentifyComboBox will contain titles and IdentifyDetailsDataGrid will contain the feature attributes. This sample uses DataItem class to update the IdentifyDetailsDataGrid source on IdentifyComboBox SelectionChanged event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to update the XAML-code for IdentifyDetailsDataGrid and replace it with your own data form. You also need to know which layer the feature belongs to in order to know the fields you need for Binding.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel Orientation="Horizontal"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="State Name: "/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [STATE_NAME]}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:14:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84636#M2047</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-10T23:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Show identify in a dataform</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84637#M2048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This sample &lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Identify" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Identify&lt;/A&gt; assumes that the IdentifyComboBox will contain titles and IdentifyDetailsDataGrid will contain the feature attributes. This sample uses DataItem class to update the IdentifyDetailsDataGrid source on IdentifyComboBox SelectionChanged event.&lt;BR /&gt;&lt;BR /&gt;You need to update the XAML-code for IdentifyDetailsDataGrid and replace it with your own data form. You also need to know which layer the feature belongs to in order to know the fields you need for Binding.&lt;BR /&gt;For example:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel Orientation="Horizontal"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="State Name: "/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [STATE_NAME]}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Jenn. For purposes of development and debugging (trying to figure this out) I have both datagrid and dataform on the the page. The datagrid is setup per the esri sample and it works OK. The dataform looks like this.&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;toolkit:DataForm x:Name="IdentifyDataForm2" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoGenerateFields="False"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsReadOnly="True"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsEnabled="True"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LabelPosition="Left"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Height="150"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VerticalAlignment="Top"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel Orientation="Horizontal"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="Name: "/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [ST_NAME]}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/toolkit:DataForm&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The data is triggered by the combobox in the sample.&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;void cb_SelectionChanged(object sender, SelectionChangedEventArgs e)
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp; int index = IdentifyComboBox.SelectedIndex;
&amp;nbsp;&amp;nbsp; if (index &amp;gt; -1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; IdentifyDetailsDataGrid.ItemsSource = _dataItems[index].Data;
&amp;nbsp;&amp;nbsp;&amp;nbsp; IdentifyDataForm2.ItemsSource = _dataItems[index].Data ;&amp;nbsp;&amp;nbsp; ////////////////////////////////

&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;SPAN&gt; Note both controls are looking at the same data. However while the datagrid displays properly, the dataform displays only the textblock containing the label and not the one containing the data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:14:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84637#M2048</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2021-12-10T23:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Show identify in a dataform</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84638#M2049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you looked at this SL4 Toolkit sample? &lt;/SPAN&gt;&lt;A href="http://www.silverlight.net/content/samples/sl4/toolkitcontrolsamples/run/default.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.silverlight.net/content/samples/sl4/toolkitcontrolsamples/run/default.html&lt;/A&gt;&lt;SPAN&gt;. Look at the Template-Driven sample. I think you need to define template for each layer since they will have different fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A simpler example will be this. Add the following XAML-code to the Identify SDK sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;StackPanel x:Name="MyDataForm" VerticalAlignment="Top" HorizontalAlignment="Center" Orientation="Horizontal"&amp;gt;
 &amp;lt;TextBlock Text="State Name: "/&amp;gt;
 &amp;lt;TextBlock Text="{Binding [STATE_NAME]}"/&amp;gt;
&amp;lt;/StackPanel&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In code-behind, set its DataContext when DataGrid gets its ItemsSource.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
void cb_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
 int index = IdentifyComboBox.SelectedIndex;
 if (index &amp;gt; -1)
 {
&amp;nbsp; IdentifyDetailsDataGrid.ItemsSource = _dataItems[index].Data;
&amp;nbsp; &lt;SPAN style="color:&amp;quot;red&amp;quot;;"&gt;MyDataForm.DataContext = _dataItems[index].Data;&lt;/SPAN&gt;
 }
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:14:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84638#M2049</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-10T23:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Show identify in a dataform</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84639#M2050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Have you looked at this SL4 Toolkit sample?&amp;nbsp;&amp;nbsp; &lt;A href="http://www.silverlight.net/content/samples/sl4/toolkitcontrolsamples/run/default.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.silverlight.net/content/samples/sl4/toolkitcontrolsamples/run/default.html&lt;/A&gt;. Look at the Template-Driven sample. I think you need to define template for each layer since they will have different fields.&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;A simpler example will be this. Add the following XAML-code to the Identify SDK sample:&amp;nbsp; &lt;BR /&gt; &lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;StackPanel x:Name="MyDataForm" VerticalAlignment="Top" HorizontalAlignment="Center" Orientation="Horizontal"&amp;gt;
 &amp;lt;TextBlock Text="State Name: "/&amp;gt;
 &amp;lt;TextBlock Text="{Binding [STATE_NAME]}"/&amp;gt;
&amp;lt;/StackPanel&amp;gt;
&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;In code-behind, set its DataContext when DataGrid gets its ItemsSource.&amp;nbsp; &lt;BR /&gt; &lt;PRE class="lia-code-sample line-numbers language-none"&gt;
void cb_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
 int index = IdentifyComboBox.SelectedIndex;
 if (index &amp;gt; -1)
 {
&amp;nbsp; IdentifyDetailsDataGrid.ItemsSource = _dataItems[index].Data;
&amp;nbsp; &lt;SPAN style="color:&amp;quot;red&amp;quot;;"&gt;MyDataForm.DataContext = _dataItems[index].Data;&lt;/SPAN&gt;
 }
}
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hmmm... I guess maybe I need an explanation of the difference between DataForm.DataContext and DataForm.ItemsSource. In the sample the xaml refers to ItemsSource but the codebehind refers to DataContext. If I set the dataform to autogenerate the fields and codebehind to set the DataContext as shown in the sample, I get both label and data for the first field only (OBJECTID_1).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I set it up as you suggest using a bound textblock in the xaml (which is what I want) and DataContext in the codebehind, I get nothing in the output. If I then change the codebehind to set the ItemsSource, I get the labels but not the data. So the whole thing remains a puzzle.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:14:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84639#M2050</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2021-12-10T23:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Show identify in a dataform</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84640#M2051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can make a FeatureDataForm work but it looks like I cannot control its contents since it will not accept an AutoGenerateFields setting. Is that true?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 18:10:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84640#M2051</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2011-03-14T18:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Show identify in a dataform</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84641#M2052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are using Silverlight Data Form now, right? This is not the same as FeatureDataForm from our Toolkit. The fields in the FeatureDataForm come from the FeatureLayer.OutFields. How they are displayed on the form is dependent on the data type defined by the service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 18:18:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84641#M2052</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-03-14T18:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Show identify in a dataform</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84642#M2053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You are using Silverlight Data Form now, right? This is not the same as FeatureDataForm from our Toolkit. The fields in the FeatureDataForm come from the FeatureLayer.OutFields. How they are displayed on the form is dependent on the data type defined by the service.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I am using (or trying to use) the regular Silverlight dataform. I tried the FeatureDataForm but since you can't reposition the textboxes it doesn't serve my purpose. BUT . . . I still cannot get the data to display except for the first field. Perhaps I need a different type of data entity?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 19:15:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84642#M2053</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2011-03-14T19:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Show identify in a dataform</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84643#M2054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried post# 7? I did not use any DataForm but just a StackPanel with TextBlocks for simplicity. The values change when ComboBox Selection changes. It should be the same idea when you use your DataForm. It is critical that you know the fields so you can bind to them in XAML. Note also that you cannot expect a field that is not included in the query to show unless you had specified them in the OutFields or "*".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 19:52:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84643#M2054</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-03-14T19:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Show identify in a dataform</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84644#M2055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Have you tried post# 7? I did not use any DataForm but just a StackPanel with TextBlocks for simplicity. The values change when ComboBox Selection changes. It should be the same idea when you use your DataForm. It is critical that you know the fields so you can bind to them in XAML. Note also that you cannot expect a field that is not included in the query to show unless you had specified them in the OutFields or "*".&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry Jenn, I had missed the subtly of your suggestion. (I had placed the stackpanel inside the dataform.) And Yes! it does work. Which makes me wonder why it will NOT work in the dataform. Look at this:&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;toolkit:DataForm x:Name="IdentifyDataForm3" ItemsSource="{Binding}" HorizontalAlignment="Left" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MinWidth="400" MaxWidth="500" Margin="4" Grid.Column="1"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;toolkit:DataForm.EditTemplate&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DataTemplate&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sdk:Label Content="Street Name:"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;toolkit:DataField&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBox Text="{Binding ST_NAME, Mode=OneWay}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/toolkit:DataField&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sdk:Label Content="Project:"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;toolkit:DataField&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBox Text="{Binding PROJECT, Mode=OneWay}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/toolkit:DataField&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/DataTemplate&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/toolkit:DataForm.EditTemplate&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/toolkit:DataForm&amp;gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;toolkit:DataForm x:Name="dataForm" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Width="350" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ItemsSource="{Binding}" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HorizontalAlignment="Left" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MaxWidth="500" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Margin="4" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Grid.Column="1" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VerticalAlignment="Center"/&amp;gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel x:Name="MyForm" VerticalAlignment="Top" HorizontalAlignment="Center" Orientation="Vertical"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel Orientation="Horizontal"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="Name: "/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [ST_NAME]}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel Orientation="Horizontal"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="Project: "/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [PROJECT]}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;with codebehind:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; void cb_SelectionChanged(object sender, SelectionChangedEventArgs e)
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp; int index = IdentifyComboBox.SelectedIndex;
&amp;nbsp;&amp;nbsp; if (index &amp;gt; -1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; try
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; IdentifyDetailsDataGrid.ItemsSource = _dataItems[index].Data;
&amp;nbsp;&amp;nbsp;&amp;nbsp; IdentifyDataForm3.DataContext = _dataItems[index].Data ;&amp;nbsp;&amp;nbsp; ////////////////////////////////
&amp;nbsp;&amp;nbsp;&amp;nbsp; dataForm.DataContext = _dataItems[index].Data ;
&amp;nbsp;&amp;nbsp;&amp;nbsp; MyForm.DataContext = _dataItems[index].Data;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; catch
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The plain stackpanel works, but neither of the dataforms will show the requested data. Go figure?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:15:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84644#M2055</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2021-12-10T23:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Show identify in a dataform</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84645#M2056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt; &amp;lt;TextBox Text="{Binding&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:&amp;quot;red&amp;quot;;"&gt;[ST_NAME]&lt;/SPAN&gt;, Mode=OneWay}"/&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;TextBox Text="{Binding&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:&amp;quot;red&amp;quot;;"&gt;[PROJECT]&lt;/SPAN&gt;, Mode=OneWay}"/&amp;gt;&amp;nbsp; &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to surround the attribute key with braces [] in the DataForm.DataField as well &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 20:51:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/show-identify-in-a-dataform/m-p/84645#M2056</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-03-14T20:51:15Z</dc:date>
    </item>
  </channel>
</rss>

