Unknown namespace http://schemas.telerik.com/2008/xaml/presentation

2 posts, 0 answers
  1. Vuyiswa Maseko
    Vuyiswa Maseko avatar
    187 posts
    Member since:
    Jan 2010

    Posted 17 Nov 2010 Link to this post

    i have open a new project and added a Map control and my xaml looks like this

    <UserControl x:Class="SilverlightApplication1.MainPage"
        mc:Ignorable="d"
        d:DesignHeight="500" d:DesignWidth="800" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
     
        <Grid x:Name="LayoutRoot" Background="White">
            <Grid.Resources>
     
     
                <DataTemplate x:Key="CenterWayPointTemplate">
                    <Grid Width="30" Height="30" HorizontalAlignment="Center" VerticalAlignment="Top">
                        <Polygon Points="0,0 30,0, 30,18 15,30 0,18" Fill="#9FFF0000" />
                    </Grid>
                </DataTemplate>
     
                <DataTemplate x:Key="DetailWayPointTemplate">
                    <Border Background="#7FFFFFFF"
                            BorderBrush="Yellow"
                            BorderThickness="2"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Top">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <TextBlock Grid.Row="0" Text="Location" HorizontalAlignment="Center" />
                            <TextBlock Grid.Row="1" Text="{Binding Path=Latitude}" HorizontalAlignment="Center" />
                            <TextBlock Grid.Row="2" Text="{Binding Path=Longitude}" HorizontalAlignment="Center" />
                        </Grid>
                    </Border>
                </DataTemplate>
     
     
                <DataTemplate x:Key="PointOfInterestTemplate">
                    <Grid Width="50" Height="90" HorizontalAlignment="Center" VerticalAlignment="Top">
                        <Polygon Stretch="Fill" Points="0,0 1,0, 1,0.7 0.5,1 0,0.7" Fill="#9FFF0000" />
                        <Grid Width="40" HorizontalAlignment="Center" Margin="0,5,0,0">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
     
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
     
                            <!-- Title -->
                            <Border Background="#9F0000FF" Grid.ColumnSpan="2">
                                <TextBlock Foreground="Yellow"
                                           HorizontalAlignment="Center"
                                           FontSize="12"
                                           Text="{Binding Path=Title}"/>
                            </Border>
     
                            <!-- Description -->
                            <Border Background="#9FFFFF00" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center">
                                <TextBlock Foreground="Green"
                                           Width="40"
                                           FontSize="10"
                                           TextWrapping="Wrap"
                                           Text="{Binding Path=Description}" />
                            </Border>
                        </Grid>
                    </Grid>
                </DataTemplate>
            </Grid.Resources>
     
            <telerik:RadMap x:Name="RadMap1"
                            Center="56.1260873546439,10.1076291138805"
                            ZoomLevel="9"
                              
                            >
                <telerik:InformationLayer x:Name="InformationLayer1"
                                          AllowDataTemplateForZoomLevel="True"
                                          Visibility="Collapsed"
                                            />
                <telerik:InformationLayer x:Name="InformationLayer2"
                                       Visibility="Collapsed"
                                       ItemTemplate="{StaticResource PointOfInterestTemplate}"
                                         />
                <telerik:InformationLayer x:Name="InformationLayer3"
                                       Visibility="Collapsed"
                                       />
            </telerik:RadMap>
        </Grid>
    </UserControl>

    and when run this app , i get the following Error

    Unknown namespace http://schemas.telerik.com/2008/xaml/presentation. [Line: 78 Position: 7]

    Thank you

  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 19 Nov 2010 Link to this post

    Hi Vuyiswa Maseko,

    Please, check that you've referenced all necessary DLLs from your code:

    Telerik.Windows.Controls.dll
    Telerik.Windows.Data.dll
    Telerik.Windows.Controls.DataVisualization.dll

    Regards,
    Andrey Murzov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft banner
Back to Top