<?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: Get Parameters in Application.xml from Behaviour or Tools in ArcGIS Viewer for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/get-parameters-in-application-xml-from-behaviour/m-p/688979#M1840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've found a possible workaround , but i'm not sure that is the best solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) extract ESRI.ArcGIS.Mapping.Core from your Viewer.xap &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) add it in your Add-ins project reference&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) using MapApplication.Current.FindObjectInLayout("myGrid") get your element that have "ViewerApplication" as DataContext&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) ViewerApplication app = (myGrid).DataContext as ViewerApplicaton&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5) And now it's possible to retrive GeometryService url for example. (app.GeometryService)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; M.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Mar 2012 15:20:56 GMT</pubDate>
    <dc:creator>MassimilianoGeppi</dc:creator>
    <dc:date>2012-03-13T15:20:56Z</dc:date>
    <item>
      <title>Get Parameters in Application.xml from Behaviour or Tools</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/get-parameters-in-application-xml-from-behaviour/m-p/688978#M1839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello There,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's possible to get the parameters inside "Application.xml" from my Behaviour or Tools using c# Code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Max&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 12:02:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/get-parameters-in-application-xml-from-behaviour/m-p/688978#M1839</guid>
      <dc:creator>MassimilianoGeppi</dc:creator>
      <dc:date>2012-03-13T12:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get Parameters in Application.xml from Behaviour or Tools</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/get-parameters-in-application-xml-from-behaviour/m-p/688979#M1840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've found a possible workaround , but i'm not sure that is the best solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) extract ESRI.ArcGIS.Mapping.Core from your Viewer.xap &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) add it in your Add-ins project reference&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) using MapApplication.Current.FindObjectInLayout("myGrid") get your element that have "ViewerApplication" as DataContext&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) ViewerApplication app = (myGrid).DataContext as ViewerApplicaton&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5) And now it's possible to retrive GeometryService url for example. (app.GeometryService)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; M.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 15:20:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/get-parameters-in-application-xml-from-behaviour/m-p/688979#M1840</guid>
      <dc:creator>MassimilianoGeppi</dc:creator>
      <dc:date>2012-03-13T15:20:56Z</dc:date>
    </item>
  </channel>
</rss>

