This is a migrated thread and some comments may be shown as answers.

MapMode button crashes in Silverlight 3

3 Answers 24 Views
Map
This is a migrated thread and some comments may be shown as answers.
tongyang
Top achievements
Rank 1
tongyang asked on 27 Apr 2011, 08:53 PM
I started a new project, building to .NET 3.5 and Silverlight 3... added RadMap and using BingMapProvider.  This is the xaml file:

<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.

3 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 29 Apr 2011, 09:09 AM
Hi tongyang,

As of Q3 2010 official release we have discontinued the support of our RadControls suite for Silverlight 3. We have been supporting our Silverlight 3 controls more than six months after the official release of RadControls for Silverlight 4 to ensure smooth transition between these two versions.

The default UI of the the RadMap control uses features which are not available in Silverlight 3 so you will not be able to use the control in Silverlight 3 project -- as you are starting new project, we would suggest you to target the Silverlight 4 framework and the control will work as expected.


Greetings,
Andrey Murzov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
tongyang
Top achievements
Rank 1
answered on 29 Apr 2011, 02:44 PM
Thank you for your reply.  Unfortunately the network where our users are going to be, is not approved for silverlight 4 yet, so going to 4 is not an option for us.
0
Giuseppe
Telerik team
answered on 03 May 2011, 10:40 AM
Hello tongyang,

In this case you will need to use the latest official Silverlight 3 binaries we have released with Q2 2010 SP2 (version 2010.2 924.1030). You can download them from this link (note that you need to be logged-in in your Client.Net account).


Best wishes,
Giuseppe
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Map
Asked by
tongyang
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
tongyang
Top achievements
Rank 1
Share this question
or