<?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: Expose or gain access to the underlying featuredataform in the editorwidget in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/expose-or-gain-access-to-the-underlying/m-p/421225#M10857</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Our custom application uses the editor widget.&amp;nbsp; Currently, the featuredataform that the widget uses formats and saves all datetimes as DateKind.Local.&amp;nbsp; This isn't useful to us since whenever any datetimes are committed back to the database it is converted to DateKind.Utc.&lt;BR /&gt;&lt;BR /&gt;What I'd like to do is capture an event or otherwise gain access to the underlying featuredataform that the editorwidget uses so that I can change the DateKind to UTC, but I can't see where that control is exposed in the editorwidget.&amp;nbsp; Any advice?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can download the source code from &lt;/SPAN&gt;&lt;A href="http://esrisilverlight.codeplex.com/SourceControl/latest#Source/CommonAPI/API/ESRI.ArcGIS.Client.Toolkit/Editor/TemplatePicker.cs" rel="nofollow noopener noreferrer" target="_blank"&gt;codeplex&lt;/A&gt;&lt;SPAN&gt; or &lt;/SPAN&gt;&lt;A href="https://github.com/Esri/arcgis-toolkit-sl-wpf/tree/master/src/CommonAPI/API/ESRI.ArcGIS.Client.Toolkit/Editor" rel="nofollow noopener noreferrer" target="_blank"&gt;Github &lt;/A&gt;&lt;SPAN&gt;for EditorWidget and FeatureDataForm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, you can get access to FeatureDataForm through TemplatePicker class which is a component of EditorWidget&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;internal static void ShowAttributeForm(FeatureLayer featureLayer, Graphic graphic)
&amp;nbsp; {
#if SILVERLIGHT
&amp;nbsp;&amp;nbsp; ChildWindow window = new ChildWindow();
#else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Window window = new Window();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.Owner = Application.Current.MainWindow;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.WindowStartupLocation = WindowStartupLocation.CenterOwner;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.SizeToContent = SizeToContent.WidthAndHeight;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.ResizeMode = ResizeMode.NoResize;
#endif
&amp;nbsp;&amp;nbsp; FeatureDataForm form = new FeatureDataForm()
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; GraphicSource = graphic,
&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureLayer = featureLayer,
&amp;nbsp;&amp;nbsp;&amp;nbsp; IsReadOnly = !featureLayer.IsUpdateAllowed(graphic),
&amp;nbsp;&amp;nbsp;&amp;nbsp; MaxWidth = 500,
&amp;nbsp;&amp;nbsp;&amp;nbsp; MaxHeight = 500
&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp; window.Content = form;
&amp;nbsp;&amp;nbsp; form.EditEnded += (s, e) =&amp;gt; { window.Close(); };
#if SILVERLIGHT
&amp;nbsp;&amp;nbsp; window.Show();
#else&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.ShowDialog();
#endif
&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 19:01:58 GMT</pubDate>
    <dc:creator>nakulmanocha</dc:creator>
    <dc:date>2021-12-11T19:01:58Z</dc:date>
    <item>
      <title>Expose or gain access to the underlying featuredataform in the editorwidget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/expose-or-gain-access-to-the-underlying/m-p/421224#M10856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Our custom application uses the editor widget.&amp;nbsp; Currently, the featuredataform that the widget uses formats and saves all datetimes as DateKind.Local.&amp;nbsp; This isn't useful to us since whenever any datetimes are committed back to the database it is converted to DateKind.Utc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'd like to do is capture an event or otherwise gain access to the underlying featuredataform that the editorwidget uses so that I can change the DateKind to UTC, but I can't see where that control is exposed in the editorwidget.&amp;nbsp; Any advice?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 16:34:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/expose-or-gain-access-to-the-underlying/m-p/421224#M10856</guid>
      <dc:creator>ChrisSmith14</dc:creator>
      <dc:date>2013-12-27T16:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Expose or gain access to the underlying featuredataform in the editorwidget</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/expose-or-gain-access-to-the-underlying/m-p/421225#M10857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Our custom application uses the editor widget.&amp;nbsp; Currently, the featuredataform that the widget uses formats and saves all datetimes as DateKind.Local.&amp;nbsp; This isn't useful to us since whenever any datetimes are committed back to the database it is converted to DateKind.Utc.&lt;BR /&gt;&lt;BR /&gt;What I'd like to do is capture an event or otherwise gain access to the underlying featuredataform that the editorwidget uses so that I can change the DateKind to UTC, but I can't see where that control is exposed in the editorwidget.&amp;nbsp; Any advice?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can download the source code from &lt;/SPAN&gt;&lt;A href="http://esrisilverlight.codeplex.com/SourceControl/latest#Source/CommonAPI/API/ESRI.ArcGIS.Client.Toolkit/Editor/TemplatePicker.cs" rel="nofollow noopener noreferrer" target="_blank"&gt;codeplex&lt;/A&gt;&lt;SPAN&gt; or &lt;/SPAN&gt;&lt;A href="https://github.com/Esri/arcgis-toolkit-sl-wpf/tree/master/src/CommonAPI/API/ESRI.ArcGIS.Client.Toolkit/Editor" rel="nofollow noopener noreferrer" target="_blank"&gt;Github &lt;/A&gt;&lt;SPAN&gt;for EditorWidget and FeatureDataForm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, you can get access to FeatureDataForm through TemplatePicker class which is a component of EditorWidget&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;internal static void ShowAttributeForm(FeatureLayer featureLayer, Graphic graphic)
&amp;nbsp; {
#if SILVERLIGHT
&amp;nbsp;&amp;nbsp; ChildWindow window = new ChildWindow();
#else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Window window = new Window();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.Owner = Application.Current.MainWindow;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.WindowStartupLocation = WindowStartupLocation.CenterOwner;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.SizeToContent = SizeToContent.WidthAndHeight;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.ResizeMode = ResizeMode.NoResize;
#endif
&amp;nbsp;&amp;nbsp; FeatureDataForm form = new FeatureDataForm()
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; GraphicSource = graphic,
&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureLayer = featureLayer,
&amp;nbsp;&amp;nbsp;&amp;nbsp; IsReadOnly = !featureLayer.IsUpdateAllowed(graphic),
&amp;nbsp;&amp;nbsp;&amp;nbsp; MaxWidth = 500,
&amp;nbsp;&amp;nbsp;&amp;nbsp; MaxHeight = 500
&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp; window.Content = form;
&amp;nbsp;&amp;nbsp; form.EditEnded += (s, e) =&amp;gt; { window.Close(); };
#if SILVERLIGHT
&amp;nbsp;&amp;nbsp; window.Show();
#else&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.ShowDialog();
#endif
&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:01:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/expose-or-gain-access-to-the-underlying/m-p/421225#M10857</guid>
      <dc:creator>nakulmanocha</dc:creator>
      <dc:date>2021-12-11T19:01:58Z</dc:date>
    </item>
  </channel>
</rss>

