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

Silverlight radMenu not recognized by IDE

2 Answers 76 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Steven Archibald
Top achievements
Rank 1
Steven Archibald asked on 14 Jan 2009, 11:33 PM
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 Answers, 1 is accepted

Sort by
0
Serrin
Top achievements
Rank 1
answered on 15 Jan 2009, 02:45 PM
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.  :)
0
Boyan
Telerik team
answered on 15 Jan 2009, 04:49 PM
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.
Tags
Menu
Asked by
Steven Archibald
Top achievements
Rank 1
Answers by
Serrin
Top achievements
Rank 1
Boyan
Telerik team
Share this question
or