Virtual Earth Silverlight地图控件CTP版发布

这几天由于MIX 09的召开,微软给我们带来不少好消息

比如Silverlight 3 Beta的发布,IE8正式版的发布

今天我们迎来另外一个好消息

基于Deep Zoom的Virtual Earth Silverlight地图控件CTP版也发布了

获取这个CTP版本的方式如下

  1. 登录Microsoft Connect网站
  2. 填写一份强制性的调查

 

这样你就可以进入下载页面了

SL3beta_VE01

大家可以在这里体验下这个Control的一个做出来的效果

要使用它的方式如下:

  • 下载并安装Microsoft Virtual Earth Silverlight Map Control CTP到一个目录
  • 引用Microsoft.VirtualEarth.MapControl.dll(在安装目录\CTP\Libraries\下可以找到)到Silverlight工程中

SL3beta_VE02 SL3beta_VE03

  • 引用Map Control Assembly如下
       1: <UserControl x:Class="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>
    添加地图元素到Grid中如下
       1: <UserControl x:Class="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>
 
这样我们就获得了初始化的Virtual Earth的地图界面了
SL3beta_VE05
SL3beta_VE04
posted @ 2009-03-22 00:18  ibillguo  阅读(4058)  评论(12编辑  收藏  举报