<?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: How to set binding for FeatureDataForm when using MVVM? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-binding-for-featuredataform-when-using/m-p/556100#M14272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem has been solved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is just because I forgot the FeatureLayer.Outfields...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Apr 2013 01:20:46 GMT</pubDate>
    <dc:creator>yyp</dc:creator>
    <dc:date>2013-04-10T01:20:46Z</dc:date>
    <item>
      <title>How to set binding for FeatureDataForm when using MVVM?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-binding-for-featuredataform-when-using/m-p/556099#M14271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having an issue when using FeatureDataForm with MVVM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the View, I try like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;&amp;lt;esri:FeatureDataForm &lt;BR /&gt;FeatureLayer=???{Binding SelectedFeatureLayer, Mode = TwoWay}???&lt;BR /&gt;GraphicSource="{Binding SelectedGraphic, Mode = TwoWay}"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the ViewModel:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;private FeatureLayer selectedFeatureLayer;&lt;BR /&gt;public FeatureLayer SelectedFeatureLayer&lt;BR /&gt;{&lt;BR /&gt;get { return this.selectedFeatureLayer; }&lt;BR /&gt;set { if (this.selectedFeatureLayer != value) { this.selectedFeatureLayer = value; RaisePropertyChanged("SelectedFeatureLayer"); } }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;private Graphic selectedGraphic;&lt;BR /&gt;public Graphic SelectedGraphic&lt;BR /&gt;{&lt;BR /&gt;get { return this.selectedGraphic; }&lt;BR /&gt;set { if (this.selectedGraphic != value) { this.selectedGraphic = value; RaisePropertyChanged("SelectedFeatureLayer"); } }&lt;BR /&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And these is a FeatureLayer MouseLeftButtonUp event handler:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;void FeatureLayer_MouseLeftButtonUp(object sender, GraphicMouseButtonEventArgs e )&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SelectedFeatureLayer = sender as FeatureLayer;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SelectedGraphic = e.Graphic;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it doesn't work. How can I solve it ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 05:17:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-binding-for-featuredataform-when-using/m-p/556099#M14271</guid>
      <dc:creator>yyp</dc:creator>
      <dc:date>2013-04-09T05:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to set binding for FeatureDataForm when using MVVM?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-binding-for-featuredataform-when-using/m-p/556100#M14272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem has been solved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is just because I forgot the FeatureLayer.Outfields...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 01:20:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-binding-for-featuredataform-when-using/m-p/556100#M14272</guid>
      <dc:creator>yyp</dc:creator>
      <dc:date>2013-04-10T01:20:46Z</dc:date>
    </item>
  </channel>
</rss>

