This is a migrated thread and some comments may be shown as answers.
Unknown namespace http://schemas.telerik.com/2008/xaml/presentation
1 Answer 173 Views
Map
This is a migrated thread and some comments may be shown as answers.
Vuyiswa
Top achievements
Rank 2
Vuyiswa asked on 17 Nov 2010, 07:06 AM
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

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 19 Nov 2010, 10:14 AM
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
Tags
Map
Asked by
Vuyiswa
Top achievements
Rank 2
Answers by
Andrey
Telerik team
Share this question
or