<?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 AttachmentEditor control does not work in a ChildControl in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/attachmenteditor-control-does-not-work-in-a/m-p/693080#M17798</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I define an AttachmentEditor in the XAML of my MainPage.xaml that has it's FeatureLayer and SourceGraphic bound to a ViewModel that is directly set to it's DataContext it will correctly display the attachments and allow attachments to be added.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I take the same AttachmentEditor XAML and put it in a ChildWindow and set the DataContext of the ChildWindow to the exact same model and show the ChildWindow the attachments are correctly displayed while the Add button is disabled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I get this to work?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Apr 2011 19:47:33 GMT</pubDate>
    <dc:creator>JoelMcBeth</dc:creator>
    <dc:date>2011-04-13T19:47:33Z</dc:date>
    <item>
      <title>AttachmentEditor control does not work in a ChildControl</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/attachmenteditor-control-does-not-work-in-a/m-p/693080#M17798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I define an AttachmentEditor in the XAML of my MainPage.xaml that has it's FeatureLayer and SourceGraphic bound to a ViewModel that is directly set to it's DataContext it will correctly display the attachments and allow attachments to be added.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I take the same AttachmentEditor XAML and put it in a ChildWindow and set the DataContext of the ChildWindow to the exact same model and show the ChildWindow the attachments are correctly displayed while the Add button is disabled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I get this to work?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 19:47:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/attachmenteditor-control-does-not-work-in-a/m-p/693080#M17798</guid>
      <dc:creator>JoelMcBeth</dc:creator>
      <dc:date>2011-04-13T19:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: AttachmentEditor control does not work in a ChildControl</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/attachmenteditor-control-does-not-work-in-a/m-p/693081#M17799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Joel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your post. We are currently looking into this problem and the fix will be available soon. In the meantime you can use the following code snippet when you are setting the AttachmentEditor's GraphicSource property:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Dispatcher.BeginInvoke((&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;Action&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;delegate&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;()&lt;/SPAN&gt;
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;{&lt;/SPAN&gt;
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp; yourAttachmentEditor.GraphicSource = yourGraphic;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;});&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:10:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/attachmenteditor-control-does-not-work-in-a/m-p/693081#M17799</guid>
      <dc:creator>AliMirzabeigi</dc:creator>
      <dc:date>2021-12-12T05:10:03Z</dc:date>
    </item>
  </channel>
</rss>

