"Invalid XAML" from Expression Blend 3

2 posts, 0 answers
  1. Terry
    Terry avatar
    157 posts
    Member since:
    Jul 2009

    Posted 21 Sep 2009 Link to this post


    I'm doing some very basic Silverlight 3 XAML in Visual Studio.  When I go to Expression Blend 3 to style the menu control, I get an "Invalid XAML" message.  The detailed messages in the results say "Cannot add content to an object of type RadMenu" and "The member Header is not reconized or is not accessible" for each RadMenuItem.  Here is an abbreviated version of the XAML, which works fine in VS2008:
        mc:Ignorable="d" d:DesignWidth="1024" d:DesignHeight="768">  
      <Grid x:Name="LayoutRoot">  
            <RowDefinition Height="90" /> 
            <RowDefinition Height="0.783*"/>  
            <RowDefinition Height="0.043*"/>  
            <ColumnDefinition Width="1.5*"/>  
            <ColumnDefinition Width="6*"/>  
            <ColumnDefinition Width="2*"/>  
        <StackPanel Grid.Column="0" Grid.ColumnSpan="3" Background="#FF5982D4" > 
            <Image Source="xxx_Banner.jpg"  HorizontalAlignment="Left" Stretch="None"/>  
        <telerikNavigation:RadMenu Orientation="Vertical" Grid.Column="0" Grid.Row="1">  
            <telerikNavigation:RadMenuItem Header="xxx Home Page"></telerikNavigation:RadMenuItem> 
            <telerikNavigation:RadMenuItem Header="About xxx">  
                    <telerikNavigation:RadMenuItem Header="Careers"></telerikNavigation:RadMenuItem> 
                    <telerikNavigation:RadMenuItem Header="History"></telerikNavigation:RadMenuItem> 
                    <telerikNavigation:RadMenuItem Header="Our Team"></telerikNavigation:RadMenuItem> 
                    <telerikNavigation:RadMenuItem Header="Our Leadership"></telerikNavigation:RadMenuItem> 
                    <telerikNavigation:RadMenuItem Header="News"></telerikNavigation:RadMenuItem> 
                    <telerikNavigation:RadMenuItem Header="Mission Statement"></telerikNavigation:RadMenuItem> 
                    <telerikNavigation:RadMenuItem Header="Contact Us"></telerikNavigation:RadMenuItem> 
            <telerikNavigation:RadMenuItem Header="Locations"></telerikNavigation:RadMenuItem> 

    Any help would be appreciated.


  2. Valeri Hristov
    Valeri Hristov avatar
    2252 posts

    Posted 23 Sep 2009 Link to this post

    Hi Terry,

    I copy-pasted the XAML you've sent into a new Silverlight application and everything seems to work properly, check the attached screenshot. I used the latest available binaries, so I guess it is possible that the problem you are experiencing is in an older version of RadControls for Silverlight. Please, try to update your assemblies with the latest internal build and see if it helps.

    Valeri Hristov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top