日期:2014-05-20  浏览次数:20753 次

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>