<?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 How do I find element created by another Add-In? in ArcGIS Viewer for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/how-do-i-find-element-created-by-another-add-in/m-p/285643#M851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: Steve Clark&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a custom Identify add-in that creates a datagrid. I have another add-in button that clears graphics but I also want it to find and close the datagrid too. I tried MapApplication.Current.FindObjectInLayout but that does not find any of the datagrid names (e.g., "IdentifyDetailsDataGrid"). How would I go about finding this object or at least to get an enumerated list of objects in the current MapApplication?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Feb 2013 16:27:40 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2013-02-15T16:27:40Z</dc:date>
    <item>
      <title>How do I find element created by another Add-In?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/how-do-i-find-element-created-by-another-add-in/m-p/285643#M851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: Steve Clark&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a custom Identify add-in that creates a datagrid. I have another add-in button that clears graphics but I also want it to find and close the datagrid too. I tried MapApplication.Current.FindObjectInLayout but that does not find any of the datagrid names (e.g., "IdentifyDetailsDataGrid"). How would I go about finding this object or at least to get an enumerated list of objects in the current MapApplication?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 16:27:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/how-do-i-find-element-created-by-another-add-in/m-p/285643#M851</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-02-15T16:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find element created by another Add-In?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/how-do-i-find-element-created-by-another-add-in/m-p/285644#M852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have used &lt;/SPAN&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/system.windows.media.visualtreehelper%28v=vs.100%29.aspx"&gt;VisualTreeHelper &lt;/A&gt;&lt;SPAN&gt;in the past to find elements within the application:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;edit: use &lt;/SPAN&gt;&lt;A href="http://firstfloorsoftware.com/silverlightspy/download-silverlight-spy"&gt;Silverlight Spy &lt;/A&gt;&lt;SPAN&gt;to help find your element.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]21900[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good Luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Scott&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 13:35:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/how-do-i-find-element-created-by-another-add-in/m-p/285644#M852</guid>
      <dc:creator>ScottFriedrich</dc:creator>
      <dc:date>2013-02-18T13:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find element created by another Add-In?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/how-do-i-find-element-created-by-another-add-in/m-p/285645#M853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: hochas&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FindObjectInLayout only works for elements that is in your layout, so unless your DataGrid is created straight in the layout you wont find it that way. To close the datagrid if its in another window, try adding a static close-event to the add-in containing the DataGrid, then calling that static method when you run your clear graphics add-in.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 10:08:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/how-do-i-find-element-created-by-another-add-in/m-p/285645#M853</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-02-19T10:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find element created by another Add-In?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/how-do-i-find-element-created-by-another-add-in/m-p/285646#M854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I added an WindowPanel around the DataGrid panel like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;userControls:WindowPanel x:Name="ResultDisplayWindowCAP"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsOpen="{Binding ElementName=btnSearchStringEntry, Path=IsChecked, Mode=TwoWay}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HorizontalAlignment="Center" VerticalAlignment="Bottom" MinWidth="280" MaxHeight="300" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Background="Lavender" &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And then use other controls its visibility such as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void LayoutRoot_Close_misc_windows_Loaded(object sender, RoutedEventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ResultDisplayWindowCAP.IsOpen = false;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The user can also dismiss this WindowPanel.&amp;nbsp; I also add some other controls such as to save the DataGrid to an Excel file or do something else.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 16:11:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/how-do-i-find-element-created-by-another-add-in/m-p/285646#M854</guid>
      <dc:creator>YurongTan</dc:creator>
      <dc:date>2013-02-20T16:11:39Z</dc:date>
    </item>
  </channel>
</rss>

