"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

    Hi:

    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:
    <UserControl   
        x:Class="xxx.MainPage" 
        xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"   
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"   
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"   
        mc:Ignorable="d" d:DesignWidth="1024" d:DesignHeight="768">  
      <Grid x:Name="LayoutRoot">  
        <Grid.RowDefinitions> 
            <RowDefinition Height="90" /> 
            <RowDefinition Height="0.783*"/>  
            <RowDefinition Height="0.043*"/>  
        </Grid.RowDefinitions> 
        <Grid.ColumnDefinitions> 
            <ColumnDefinition Width="1.5*"/>  
            <ColumnDefinition Width="6*"/>  
            <ColumnDefinition Width="2*"/>  
        </Grid.ColumnDefinitions> 
        <StackPanel Grid.Column="0" Grid.ColumnSpan="3" Background="#FF5982D4" > 
            <Image Source="xxx_Banner.jpg"  HorizontalAlignment="Left" Stretch="None"/>  
        </StackPanel> 
        <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> 
            <telerikNavigation:RadMenuItem Header="Locations"></telerikNavigation:RadMenuItem> 
     
        </telerikNavigation:RadMenu> 
      </Grid> 
    </UserControl> 
     

    Any help would be appreciated.

    Thanks,

    Terry
  2. Valeri Hristov
    Admin
    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.

    Greetings,
    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.
  3. DevCraft banner
Back to Top