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

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

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

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

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

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

 

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

Virtual Earth Silverlight地图控件CTP版发布

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

要使用它的方式如下:

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

Virtual Earth Silverlight地图控件CTP版发布 Virtual Earth Silverlight地图控件CTP版发布

  • 引用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的地图界面了
Virtual Earth Silverlight地图控件CTP版发布
Virtual Earth Silverlight地图控件CTP版发布

相关文章:

  • 2021-06-30
  • 2021-10-13
  • 2021-07-05
  • 2021-12-05
  • 2021-09-11
  • 2021-10-18
猜你喜欢
  • 2021-10-18
  • 2021-12-13
  • 2021-09-09
  • 2022-02-23
  • 2021-09-29
相关资源
相似解决方案