您的位置:首页 > 编程语言 > PHP开发

Virtual Earth Silverlight地图控件CTP版发布

2009-03-22 00:18 316 查看
这几天由于MIX 09的召开,微软给我们带来不少好消息

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

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

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

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

登录Microsoft Connect网站

填写一份强制性的调查

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





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

要使用它的方式如下:

下载并安装Microsoft Virtual Earth Silverlight Map Control CTP到一个目录

引用Microsoft.VirtualEarth.MapControl.dll(在安装目录\CTP\Libraries\下可以找到)到Silverlight工程中







引用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的地图界面了





内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: