<?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: Custom Tool - Popup Toolbar - Retrieving Popup's Graphic in ArcGIS Viewer for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/custom-tool-popup-toolbar-retrieving-popup-s/m-p/140726#M403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you! That worked perfectly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't believe I didn't think of looking at the command parameter &amp;gt;.&amp;lt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Apr 2012 14:58:22 GMT</pubDate>
    <dc:creator>MarcusGwillim</dc:creator>
    <dc:date>2012-04-03T14:58:22Z</dc:date>
    <item>
      <title>Custom Tool - Popup Toolbar - Retrieving Popup's Graphic</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/custom-tool-popup-toolbar-retrieving-popup-s/m-p/140724#M401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Since it is now possible to have tools in the popup window (PopupToolbarContainer section in Tools.xml), I was wondering what is the best method to retrieve the graphic associated with the currently shown popup window. I am looking to retrieve information from the attribute dictionary of the graphic when the tool is executed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 18:02:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/custom-tool-popup-toolbar-retrieving-popup-s/m-p/140724#M401</guid>
      <dc:creator>MarcusGwillim</dc:creator>
      <dc:date>2012-03-29T18:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Tool - Popup Toolbar - Retrieving Popup's Graphic</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/custom-tool-popup-toolbar-retrieving-popup-s/m-p/140725#M402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Marcus:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With tools on the pop-up's toolbar, the parameter passed to the Execute and CanExecute methods is an OnClickPopUpInfo object.&amp;nbsp; So in the Execute method, you can get the feature currently shown in the pop-up like so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;public void Execute(object parameter) { &amp;nbsp;&amp;nbsp;&amp;nbsp; // Get feature currently shown in pop-up &amp;nbsp;&amp;nbsp;&amp;nbsp; OnClickPopupInfo popupInfo = parameter as OnClickPopupInfo; &amp;nbsp;&amp;nbsp;&amp;nbsp; Graphic currentFeature = popupInfo.PopupItem.Graphic;&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;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need to show the names of fields in the UI, you can get the configured field names and visibility via OnClickPopUpInfo.PopupItem.FieldInfos.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A sample that calculates service areas for the feature shown in the pop-up should be available on the code gallery within the next couple days.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 23:51:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/custom-tool-popup-toolbar-retrieving-popup-s/m-p/140725#M402</guid>
      <dc:creator>RichZwaap</dc:creator>
      <dc:date>2012-03-29T23:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Tool - Popup Toolbar - Retrieving Popup's Graphic</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/custom-tool-popup-toolbar-retrieving-popup-s/m-p/140726#M403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you! That worked perfectly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't believe I didn't think of looking at the command parameter &amp;gt;.&amp;lt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 14:58:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/custom-tool-popup-toolbar-retrieving-popup-s/m-p/140726#M403</guid>
      <dc:creator>MarcusGwillim</dc:creator>
      <dc:date>2012-04-03T14:58:22Z</dc:date>
    </item>
  </channel>
</rss>

