Virtual Earth Silverlight地图控件CTP版发布
这几天由于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的地图界面了
分类:
Silverlight
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· 展开说说关于C#中ORM框架的用法!
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?