Using Virtual Earth in a WPF Application
- Posted: Jun 27, 2008 at 7:52 AM
- 10,562 Views
- 4 Comments
Download
How do I download the videos?
- To download, right click the file type you would like and pick “Save target as…” or “Save link as…”
Why should I download videos from Channel9?
- It's an easy way to save the videos you like locally.
- You can save the videos in order to watch them offline.
- If all you want is to hear the audio, you can download the MP3!
Which version should I choose?
- If you want to view the video on your PC, Xbox or Media Center, download the High Quality WMV file (this is the highest quality version we have available).
- If you'd like a lower bitrate version, to reduce the download time or cost, then choose the Medium Quality WMV file.
- If you have a Zune, WP7, iPhone, iPad, or iPod device, choose the low or medium MP4 file.
- If you just want to hear the audio of the video, choose the MP3 file.
Right click “Save as…”
- WMV (WMV Video)
Comments Closed
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
I played around with Virtual Earth and WPF a while back but ran into Z-Order and DOM issues. Looks like the latest version of the WPF browser control and your "layered window trickery" solves most of the issues.
However, I think the real power in doing something like this would be XAML pushpins with dynamic colors and numbers. I imagine just keeping the hidden top layer buttons visible and using a small transparent gif for the ve pushpin would do it. You'd lose the pushpin mouseover but I guess you could use the button mouseover event at that point. A custom dashboard would be needed to prevent the XAML buttons from covering it as well. Any other thoughts? Thanks!
I actually had WPF pushpins originally, but chose not to go that route. That's not to say you couldn't. In fact, I actually use an invisible (Opacity=".01") WPF button over the pushpin rendered by the map. That's how I chose to implement the ability to hover over the pushpin and get a WPF InfoBox (implemented as a UserControl). If you really want to have WPF based pushpins, just comment out line 387 in VEMap and comment out line 401 which is the call telling VE to add the pushpin.
I chose not to use WPF pushpins for two reasons. First, it seemed like overkill to render such a small UI element as a vector graphic since pushpins are typically fixed width and height. Second, due to the delay in event notification between JavaScript & managed code, the repositioning of the pushpins is a little “jerky.” So I am a bigger fan of drawing your pushpins with a vector drawing tool, and then saving them as bitmaps. You get the same visual experience with better overall perf. Your mileage may vary.
Remove this comment
Remove this thread
close