Gold Coast : WPF and Virtual Earth revisited(blogs.msdn.com)

submitted by crpietschmanncrpietschmann(11.3k) 3 years, 11 months ago

I worked on a more creative/reusable approach to hosting Virtual Earth in a WPF application. If you have looked at any of my previous samples showing how to host Virtual Earth in a WPF app, you'll recall I was using the WinForms WebBrowser control to host an html page that in turn hosts Virtual Earth. Additionally, I used the WebBrowser control's ability to enable communication between managed code and JavaScript. One of the frustrations with this approach is that when using WinForms interop, all WinForms controls take the highest z-order in your app which means you cannot render WPF elements on top of the map. The other thing that has always bothered me about my sample is although it showed how to implement the general approach, it did not wrap all the functionality into a reusable WPF Virtual Earth control. Good news! I have an updated sample.

add a comment |category: |Views: 58

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story