Select to view content in your preferred language

Get Parameters in Application.xml from Behaviour or Tools

540
1
03-13-2012 05:02 AM
MassimilianoGeppi
Esri Contributor
Hello There,
It's possible to get the parameters inside "Application.xml" from my Behaviour or Tools using c# Code?

Thank you in advance.
Max
0 Kudos
1 Reply
MassimilianoGeppi
Esri Contributor
Hi,

I've found a possible workaround , but i'm not sure that is the best solution.

1) extract ESRI.ArcGIS.Mapping.Core from your Viewer.xap
2) add it in your Add-ins project reference
3) using MapApplication.Current.FindObjectInLayout("myGrid") get your element that have "ViewerApplication" as DataContext
4) ViewerApplication app = (myGrid).DataContext as ViewerApplicaton
5) And now it's possible to retrive GeometryService url for example. (app.GeometryService)

M.
0 Kudos