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

"Invalid XAML" from Expression Blend 3

1 Answer 78 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Terry
Top achievements
Rank 1
Terry asked on 21 Sep 2009, 11:12 PM
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

1 Answer, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 23 Sep 2009, 02:47 PM
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.
Tags
Menu
Asked by
Terry
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question
or