MapMode button crashes in Silverlight 3

4 posts, 0 answers
  1. tongyang
    tongyang avatar
    4 posts
    Member since:
    Jan 2010

    Posted 27 Apr 2011 Link to this post

    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.
  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 29 Apr 2011 Link to this post

    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
  3. DevCraft banner
  4. tongyang
    tongyang avatar
    4 posts
    Member since:
    Jan 2010

    Posted 29 Apr 2011 Link to this post

    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.
  5. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 03 May 2011 Link to this post

    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
Back to Top