Skip to content

Desktop Browser Interaction Sample App via Listener Approach

License

Notifications You must be signed in to change notification settings

jiriteach/desktop-browser-interaction-sample-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Desktop Browser Interaction Sample App via Listener Approach

Background

.NET Windows Form App that uses a .NET browser based control to load an Esri ArcGIS WebApp - https://lol-iframe-example.azurewebsites.net/embeddedMap.html.

This Esri ArcGIS WebApp has been created using the ArcGIS API for JavaScript - 3.27 - https://developers.arcgis.com/javascript/

Purpose

The Esri ArcGIS WebApp is fully functional when embedded using a .NET browser based control within the .NET Windows Form App.

Notes

  1. The .NET browser based control for C# Windows Forms Apps, makes use of Internet Explorer as a rendering engine. The mode of IE has been specifically set to IE=edge for compatibility purposes and to ensure JavaScript works as expected.

  2. Selections OR interactions in a JSON format, from the Esri ArcGIS WebApp (when embedded using a .NET browser based control) can be returned to the .NET Windows Form App.

  3. This is made possible via an HTTP service listener which is started when the .NET Windows Form App is run. The default configuration has the HTTP service listener satrted on port 8989. This HTTP service listener can accept POST requests.

  4. Selections OR interactions OR payloads from the Esri ArcGIS WebApp are passed as JSON to the HTTP service listener using XMLHttpRequest.

  5. JSON is de-serialized within the .NET Windows Form App into an object which can then be easily accessed.

Credits

  • Jithen Singh

Copyright © 2024 - Eagle Technology Group Ltd