Silverlight radMenu not recognized by IDE

3 posts, 0 answers
  1. Steven Archibald
    Steven Archibald avatar
    8 posts
    Member since:
    Apr 2006

    Posted 14 Jan 2009 Link to this post

    I am creating a simple SL app. I add a grid with 2 rows. I then try to drop a RadMenu from the toolbox in my page.xaml.  The closing tag is underlined immediately, and the error message is: "AG_E_UNKNOWN_ERROR". I can see that the telerikNavigation xmlns attribute is added. Here is the entirety of my sample page with the radmenu element included: 

    <

     

    UserControl

     

     

    xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"

     

     

    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"

     

     

    xmlns:basics="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" x:Class="IBRS_SL.Page"

     

     

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

     

     

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="900" Height="800">

     

     

     

    <Grid x:Name="LayoutRoot" ShowGridLines="True" Background="White">

     

     

     

    <Grid.RowDefinitions>

     

     

     

    <RowDefinition Height="100px" />

     

     

     

    <RowDefinition Height="*">

     

     

     

    </RowDefinition>

     

     

     

    <RowDefinition Height="100px" />

     

     

     

    </Grid.RowDefinitions>

     

     

     

    <telerikNavigation:RadMenu></telerikNavigation:RadMenu>

     

     

     

    </Grid>

     

    </

     

    UserControl>

     


    I am using VS 2008 Pro, and installed the trial version of Silverlight "RadControls for Silverlight Q3 2008". It did not add these items to the toolbox automatically for me.

    This is the second time I've uninstalled and installed these. Thus far, I'm not impressed ...
  2. Serrin
    Serrin avatar
    286 posts
    Member since:
    Sep 2008

    Posted 15 Jan 2009 Link to this post

    Hey Stephen,

    Have you added references to both Telerik.Windows.Controls and Telerik.Windows.Controls.Navigation to your project?  Also, it's generally necessary to add an x:Name="Whatever" to the controls (it's kinda best-practices for xaml anyway, this just kind of forces it).  I just started a brand new project (VS08, Q3 Silverlight), and after double clicking to add a RadMenu all I had to do was add the Telerik.Windows.Controls and x:Name and the problem went away.  :)
  3. DevCraft banner
  4. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 15 Jan 2009 Link to this post

    Hello Steven,

      Serin is correct, but this does not seem to be a problem of your own as you have Telerik.Windows.Controls referenced in your xaml.

    The problem you experience is in Silverlight framework or VS 2008, I am not sure which one exactly. You can check this thread  http://silverlight.net/forums/t/44737.aspx  and make a small test -- add a <Button> (Microsoft control) close all .xaml files and then open your file again. This will produce the exact same error. I know it is annoying but I'm afraid we can't do anything about it. If you build your solution the error disappears so in fact this is not something that can affect your project.

    I hope the explanation helps.

    Greetings,
    Boyan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top