I started a new project, building to .NET 3.5 and Silverlight 3... added RadMap and using BingMapProvider. This is the xaml file:
And this is the code behind:
With the key being the real BingMaps key. Running this, whenever I hover the MapMode button in the CommandBar, the whole silverlight app just crashes with the message:
Silverlight application code 4004
Message: System.Windows.Markup.XamlParseException: AG_E_PARSER_BAD_PROPERTY_VALUE [Line:13 Position: 30]
Any ideas? Thanks in advance.
<
UserControl
x:Class
=
"RadControlsSilverlightApp1.MainPage"
xmlns:telerikRadMap
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.DataVisualization"
mc:Ignorable
=
"d"
d:DesignWidth
=
"640"
d:DesignHeight
=
"480"
>
<
Grid
x:Name
=
"LayoutRoot"
>
<
telerikRadMap:RadMap
Margin
=
"12"
Name
=
"radMap1"
AllowedCommands
=
"Road,Aerial,Birdseye"
/>
</
Grid
>
</
UserControl
>
And this is the code behind:
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Net;
using
System.Windows;
using
System.Windows.Controls;
using
System.Windows.Documents;
using
System.Windows.Input;
using
System.Windows.Media;
using
System.Windows.Media.Animation;
using
System.Windows.Shapes;
using
Telerik.Windows.Controls;
using
Telerik.Windows.Controls.Map;
using
Telerik.Windows.Data;
namespace
RadControlsSilverlightApp1
{
public
partial
class
MainPage : UserControl
{
public
MainPage()
{
InitializeComponent();
BingMapProvider provider =
new
BingMapProvider(MapMode.Aerial,
true
,
"key"
);
this
.radMap1.Provider = provider;
}
}
}
With the key being the real BingMaps key. Running this, whenever I hover the MapMode button in the CommandBar, the whole silverlight app just crashes with the message:
Silverlight application code 4004
Message: System.Windows.Markup.XamlParseException: AG_E_PARSER_BAD_PROPERTY_VALUE [Line:13 Position: 30]
Any ideas? Thanks in advance.