读书人

Silverlight Map Control 汉语支持

发布时间: 2011-12-15 23:41:24 作者: rapoo

Silverlight Map Control 中文支持
有谁用过Silverlight Map Control 的,它支持中文吗 支持的话怎么设置

[解决办法]
目前微软的预览版上没有看见中文版

不过不影响使用,里面一样可以使用中文字体

第一步:打开VS2008,新建Silverlight项目。(2.0与3.0的Silverlight Tools均可)





第二步:添加对Microsoft.VirtualEarth.MapControl.dll的引用。

Microsoft.VirtualEarth.MapControl.dll位于Virtual Earth Silverlight Map Control (CTP) SDK安装路径内。



第三步:在Silverlight的MainPage.xaml(2.0中是Page.xaml)中插入地图控件。

C# code
<UserControl x:Class="SilverlightApplication1.Page"    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     xmlns:m="clr-namespace:Microsoft.VirtualEarth.MapControl;assembly=Microsoft.VirtualEarth.MapControl">    <Grid x:Name="LayoutRoot" Background="White">        <m:Map/>    </Grid></UserControl> 

读书人网 >.NET

热点推荐