How to load Google Maps in wpf window?

前端 未结 2 517
暗喜
暗喜 2021-01-01 06:53

Is it possible to load Google Maps in wpf window? If yes how can i do this? I\'m using visual studio-2010 and DevExpress tool. This code i found from DevExpress official sit

相关标签:
2条回答
  • 2021-01-01 07:21

    An easy way is to use the WebBrowser control. In XAML add:

    <WebBrowser x:Name="wbMaps" Source="https://www.google.com/maps"/>
    
    0 讨论(0)
  • 2021-01-01 07:34

    If you are not limited to using Google Maps then take a look at the Bing Maps WPF control for a truly native WPF map solution:

    http://msdn.microsoft.com/en-us/library/hh750210.aspx

    If you need to use Google Maps you can of course use a web browser control and create an interlop to communicate between C# and JavaScript however if you want a native WPF solution then take a look at some open source solutions like the following:

    http://greatmaps.codeplex.com/

    https://github.com/ericnewton76/gmaps-api-net

    0 讨论(0)
提交回复
热议问题