Home Getting Started Features and RoadMap Project Structure Screenshots and Video Application list

Getting Started

Requirements

To compile and run this project, you need to have the following installed:
For the SurfaceVEMap, you'll need either a Microsoft Surface device or the Microsoft Surface SDK Workstation Edition, including the simulator.

The source code project files are for Visual Studio 2008.

Download

Visit the Releases tab above and download the binaries.

Add References

Create or open your WPF project in Visual Studio and add a reference to InfoStrat.VE.dll for WPF apps:
WPF_References.jpg
Add both InfoStrat.VE.dll and InfoStrat.VE.NUI.dll for Surface apps:
Surface_References.jpg
For Windows 7 Touch apps, add InfoStrat.VE.dll, Infostrat.VE.Windows7Touch.dll, Wnidows7.Multitouch.dll, and Windows7.Multitouch.WPF.dll.

Add VEMap

Add the namespace reference:

<xmlns:ve="clr-namespace:InfoStrat.VE;assembly=InfoStrat.VE">

Then add a VEMap (or SurfaceVEMap) control to your XAML. (Alternately instantiate it in code and add it to the UI tree manually.)

<ve:VEMap />

Run!

Now you are good to go! Try adding VEPushPin objects as children to the VEMAP and set the Latitude and Longitude properties of VEPushPin.

Last edited Jan 4, 2010 at 3:24 PM by JoshB, version 7

Comments

sdharman Mar 15, 2011 at 9:06 AM 
Hi ,
I am in a hoorible situation. I working in surface application.

I have added the namespace given below to my suracewindow1.xaml :
xmlns:m="clr-namespace:InfoStrat.VE.NUI;assembly=InfoStrat.VE.NUI"
I wrote the tag for creating surface map :
<m:SurfaceVEMap x:Name="map" MapStyle="Hybrid" />

The Problem is:
If i run my surface application in Surface simulator, there is no map control is shown by the surface simulator.

But if i run in wpf application, the map control is runned sucessfully

Please Please,do help me to overcome this problem.

I am using

Bing maps sdk downloaded from :

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=e9298080-50c4-4f2e-9fc4-4009074996ba&displaylang=en

Surface 1.0 servicepack & Surace 1.0 workstation edition - surface simulator

Operating system : Windows 7


Thanks in Advance,

Siva dharman

subcreation Apr 2, 2010 at 10:54 PM 
THANKS!! Downloading the source and building the dll myself worked!

JoshB Apr 2, 2010 at 8:26 PM 
Subcreation,

The source code for the control and the example project is available from the download tab. A more recent source tree is also available from the source code tab. Have you downloaded the source and compiled and run the sample project?

Also for future reference, it is easier to track specific questions if you create a thread on the discussion tab, rather than post a comment here, which I don't see all the time. The discussion threads are very recent and active, and people use InfoStrat.VE all the time. SergeCalderara got his problem working by doing a full recompile. http://bingmapswpf.codeplex.com/Thread/View.aspx?ThreadId=207406

subcreation Apr 2, 2010 at 7:39 PM 
I get an XamlParseException when I try to implement this (with exactly what SergeCalderara posted above). I have VE3D installed and I was able to run the example EXE.

An example project with source code would be far more useful. I see many of the posts here are months old. Has anyone used this succesfully recently?

SergeCalderara Mar 26, 2010 at 12:35 PM 
I have follows how to integrate and test that control in a WPF application.
I have downloaded the Virtual 3D controls.

Then when runing my sample I get following exception :
Could not load file or assembly 'InfoStrat.VE, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a464bcc72081fceb' or one of its dependencies. An attempt was made to load a program with an incorrect format. Error at object 'System.Windows.Controls.Grid' in markup file 'map;component/window1.xaml' Line 7 Position 10.

I simply past it as follwo in my XAML :
<Window x:Class="map.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ve="clr-namespace:InfoStrat.VE;assembly=InfoStrat.VE"
Title="Window1" Height="300" Width="300">
<Grid>
<ve:VEMap></ve:VEMap>
</Grid>
</Window>

Any idea what is mmissing or wrong ?

Thnaks for help
serge

radioman Aug 30, 2009 at 12:14 PM 
thi one works perfect: http://greatmaps.codeplex.com/

JoshB Aug 21, 2009 at 2:50 AM 
Bill, I have answered your question in a discussion thread. http://virtualearthwpf.codeplex.com/Thread/View.aspx?ThreadId=66557

BillElagizi Aug 20, 2009 at 5:55 PM 
Thanks a lot for the control.
I am new to MS Surface. I added the namespace and the Surface Control to the XAML of a scatter view project. I added pictures to the scatetr view and the Surface Control. When I run it I get the images (which I can move around using multitouch) and Virtual Earth in a window. I can not move the map using multitouch though. Comments please. Also VE does not zoom in or out. Thanks a lot.

JoshB Apr 20, 2009 at 1:53 PM 
See this thread: http://virtualearthwpf.codeplex.com/Thread/View.aspx?ThreadId=53123. An update will be published soon. I need to get time to finish testing it.

shahbour Apr 20, 2009 at 11:12 AM 
Were any one able to over come this problem , i got both .net3.5 sp1 and virtual Earth 3D Beta, but still it the application crash when i try to run it

drseltsam Apr 16, 2009 at 3:41 PM 
I am facing the same issue as TonyLugg described. The application crashes, when it tries to load elevation-data from the http://maps.live.com/manifests/hd.xml in the VEMap_loaded event. There comes the message: "Object is not ready for use. If starting up, please use Host.RenderEngine.Inintialized. Alternativeliy it may be already torn down or disposed"

DanielKornev Apr 15, 2009 at 3:34 PM 
you need to download and install Virtual Earth 3D control - go to http://maps.live.com/, click on 3D view button and agree on installing "Virtual Earth 3D Beta"

TonyLugg Apr 13, 2009 at 6:10 PM 
I have downloaded both the dll and source. Neither will run. The WPFVEMapSample.exe crashes as soon as I try to run it, no window comes up. The source for VE Map compiles but also crashes when I try to run it. I have VS2008 and .NET 3.5 SP1. I am running on 32bit Vista. Please help as I believe this control will be very useful for us.