I hope I've posted this question in the right place.
I've got a project to display multiple points on a bing silverlight map. I found an example of this at http://beyondrelational.com/blogs/di...ta-source.aspx but its in C#. I worked my way through recoding this into vb.
Here is the Xaml:
Code:
<UserControl x:Class="CrashTest.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:m="clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl"
xmlns:t="clr-namespace:CrashTest1; assembly=CrashTest"
mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
<UserControl.Resources>
<DataTemplate x:Key="LogoTemplate">
<m:Pushpin m:MapLayer.Position="{Binding Location}" Background="Blue">
<ToolTipService.ToolTip >
<TextBlock Text="{Binding Address}"></TextBlock>
</ToolTipService.ToolTip>
</m:Pushpin>
</DataTemplate>
<t:LocationDataCollection x:Key="LocationList" IsDataSource="True"/>
</UserControl.Resources>
<Grid x:Name="LayoutRoot">
<m:Map x:Name="MyMap" CredentialsProvider="AoJgw4TfyKo-D2xbQx-XD8M_O8EJyKu3dZ_TzqKzYwLe6aIQyuW-BciCYra4nJGK"
Mode="Road" RenderTransformOrigin="0.42,0.557" Margin="0,0,0,0"
LogoVisibility="Collapsed" >
<m:MapItemsControl x:Name="ListOfItems"
ItemTemplate="{StaticResource LogoTemplate}"
ItemsSource="{StaticResource LocationList}">
</m:MapItemsControl>
</m:Map>
</Grid>
</UserControl>
and here is the vb code:
Code:
Imports System
Imports System.IO
Imports System.Net
Imports System.Collections
Imports System.Collections.ObjectModel
Imports System.Xml.Serialization
Imports System.Reflection
Imports Microsoft.Maps.MapControl
Imports System.Xml
Imports System.Data
Namespace CrashTest1
Public Class LocationData
Public Property Location() As Location
Get
Return Location
End Get
Set(ByVal value As Location)
End Set
End Property
Public Property Address() As String
Get
Return Address
End Get
Set(ByVal value As String)
End Set
End Property
Public Property CadCalls_Link() As Integer
Get
Return CadCalls_Link
End Get
Set(ByVal value As Integer)
End Set
End Property
'Date of call
'Public Property Date_Retrieved() As Date
' Get
' Return Date_Retrieved
' End Get
' Set(ByVal value As Date)
'
' End Set
'End Property
Public Sub LocationData()
Me.Location = New Location()
End Sub
End Class
End Namespace
The error I am getting is this:
Error 1 The tag 'LocationDataCollection' does not exist in XML namespace 'clr-namespace:CrashTest1; assembly=CrashTest'.
Can anyone help me figure out this namespace error?