none
The tag 'Digitizer' does not exist in XML namespace RRS feed

  • 问题

  • 最近打算把开源项目 DeepEarth BingMapsToolkit  中的Digitizer 控件拿来用,可以添加了该加的dll引用后发现项目老是生成不了,出现以下错误:

    The tag 'Digitizer' does not exist in XML namespace 'clr-namespace:DeepEarth.BingMapsToolkit.Client.Controls;assembly=DeepEarth.BingMapsToolkit.Client.Controls.Digitizer'

    我的代码是这样的

    <UserControl x:Class="SLLiveEarthControl.MainPage"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:VirtualEarth="clr-namespace:Microsoft.VirtualEarth.MapControl;assembly=Microsoft.VirtualEarth.MapControl"
        xmlns:dg="clr-namespace:DeepEarth.BingMapsToolkit.Client.Controls;assembly=DeepEarth.BingMapsToolkit.Client.Controls.Digitizer"
        Width="800" Height="600">
        <Grid x:Name="LayoutRoot" Background="White">

            <VirtualEarth:Map x:Name="viewMap" Mode="AerialWithLabels"  Grid.Column="0" Grid.Row="0" Grid.RowSpan="3" Padding="5"
                   View="29.544,106.518,0.0000 14.0000 0.0000"  MouseDoubleClick="MapWithImages_MouseDoubleClick" />
            <dg:Digitizer Name="digitizer" MapName="viewMap" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="4,4,4,4"/>
            
                   </Grid>
    </UserControl>

    2010年5月19日 7:35

答案

全部回复