Microsoft has brought us a lot of good news over the past few days due to the release of mix 09.
For example, the release of Silverlight 3 beta and the official release of IE8
We have another piece of good news today.
The Virtual Earth Silverlight map control CTP version based on deep Zoom is also released.
The method for obtaining this CTP version is as follows:
- Log on to the Microsoft connect website
- Enter a mandatory survey
Then you can go to the download page.
You can experience the effects of this control.
You can use it as follows:
- Download and install Microsoft Virtual Earth Silverlight map control CTP to a directory
- Reference Microsoft. virtualearth. mapcontrol. dll (available in the installation directory \ CTP \ libraries \) to the Silverlight Project
- Reference map control assembly as follows
1:
" sl3beta. vearth. mainpage "
2: xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation "
3: xmlns: x = " http://schemas.microsoft.com/winfx/2006/xaml "
4: xmlns: VE = " CLR-namespace: microsoft. virtualearth. mapcontrol; Assembly = Microsoft. virtualearth. mapcontrol "
5:<Grid X: Name ="Layoutroot">
6:</GRID>
7:</Usercontrol>
Add map elements to the grid as follows: 1:
" sl3beta. vearth. mainpage "
2: xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation "
3: xmlns: x = " http://schemas.microsoft.com/winfx/2006/xaml "
4: xmlns: VE = " CLR-namespace: microsoft. virtualearth. mapcontrol; Assembly = Microsoft. virtualearth. mapcontrol "
5:<Grid X: Name ="Layoutroot">
6:<Ve: map/>
7:</GRID>
8:</Usercontrol>
In this way, we can obtain the initialized map interface of Virtual Earth.