So I have a UI using XAML and I was thinking about having an embedded Bing Map, or maybe Google Map I'm not sure. It's possible to create an interactive map on the UI, but I need to be able to click pushpins and retrieve data which doesn't seem to be possible without Javascript, so I was wondering if the UI could open up an embedded map, which can easily have pushpin events(such as detecting clicks), and send the data from that pin back to the UI?
Can Embedded Bing Map(Javascript) Send Data to a C# UI?
130 Views Asked by Marcus At
1
There are 1 best solutions below
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in BING-MAPS
- Using BING Maps API to get the cords of a location
- Can't get location from Bing Map API
- bing maps not working properly unity in WebGL export
- Bing dataflow API csv input data not working
- Filter Street View by Image Capture Date
- can we control the format of the Latitude and Longitude generated by power apps
- Get live traffic shown on an embedded Bingmap in SharePoint
- Calculate the distance between 2 locations (latitude & Latitude) using BingMaps.GetRouteV2
- Getting Bing Maps Elevation Data Through Webservice and FilterXML produces VALUE Error
- Zoom to my Location in Microsoft Power Apps
- pulse animation pushpoint on Bing Map
- How to configure a request for a MIO route with multiple stops over multiple shifts?
- Choropletic map in Power BI doesn't work well across counties and provinces
- Bing Maps V8 Web Control geocode accuracy
- PowerApps BingMaps.GetMapV2 image trying to add multiple pushpins
Related Questions in PUSHPIN
- How to Pass Pushpin Pod Instance Details When Invoking Backend Service Defined in Pushpin Config Routes
- Getting django-eventstream and Pushpin working
- Can Embedded Bing Map(Javascript) Send Data to a C# UI?
- Pushpin events C#?
- Placing PushPins on Bing Maps works fine for the first, then I cannot place anymore and my mouse stops working. But I cannot see anything wrong?
- Plotting data in mysql in Bing Maps
- Bing Maps Drop pin button
- Why the throughput of publish/subscribe systems is stable?
- PushPine ObjectID is Not Same as Selected ObjectID in ForgeViewer
- How can I add a label onto my Bing Maps pushpins?
- Which is the messages format in channels?
- How can I delete all existing Pushpins from Bing Maps?
- Superimposed Pins on Bing Maps - How to display metadata of both or move pins apart at a certain zoom
- How to convert GeoCoordinate to Pushpin Location in C#?
- How to rotate pushpin image in bing map?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Bing Maps has two different map controls that can be used in native .NET applications. So no need to embed a JavaScript map.
There is the Windows UWP map SDK that can be used in Windows apps, and in WPF apps via a XAML island. Here are some useful resources:
There is also an older WPF SDK that has fewer capabilities than the UWP SDK. It is generally recommended to use the UWP map control, but if you want to use this, here are the details: https://learn.microsoft.com/en-us/previous-versions/bing/wpf-control/hh750210(v%3dmsdn.10)
If you really want to embed a JavaScript map into a .NET app and be able to communicate between the two, it can be done. To do that you need to embed a web browser control into your .NET app and then us interop functions to send messages back and forth. This takes a decent amount of work to get working well. Note that if you use the built in .NET browser you cannot float XAML elements above the browser/map (this has been an issue for over a decade). If you embed the chrome browser it is possible to modify it so you can float XAML elements over the browser, but this also makes your app significantly larger.