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

RadRibbonTab error in Expression Blend

3 Answers 126 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 1
Michael asked on 10 Aug 2011, 01:06 AM
I'm upgrading our project to use the Q2 2011 release, and I'm trying to use the RadRibbonView (we didn't use the RibbonBar component).

In EB, when I try to set the header of a RadRibbonTab to some other text, I receive this error:

The local property "Header" can only be applied to types that are derived from "HeaderedItemsControl".

This doesn't happen in Visual Studio.  This only seems to be a design time error in EB, but it's definitely holding me up.

Finally, if I start a new project in EB, things work fine, so I'm assuming I have a reference or style conflict somewhere, but I can't figure it out.  Also, the EB property pages have items grouped differently.  I don't think I have any assemblies hanging around from previous installations....

What should I look for to fix this?

3 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 11 Aug 2011, 12:05 AM
It looks like the problem dissappeared after removing the reference paths from the project from within Visual Studio.   I'm assuming it was trying to load the RadRibbonTab component from the RibbonBar assembly instead of what its reference was set to be.  :-/
0
Voltz
Top achievements
Rank 1
answered on 19 Apr 2012, 08:39 AM

Not sure if i should create a new thread but the title is a similar problem under a different situation.

I'm trying to extract a template for the RadRibbonTab via EB but it is not letting me do so.

<telerikRibbon:RadRibbonView  IsBackstageOpen="True"  >
        <telerikRibbon:RadRibbonTab Header="test" ></telerikRibbon:RadRibbonTab>
</telerikRibbon:RadRibbonView>


is giving me a design error saying "Cannot add content to an object of type 'RadRibbonView'". This prevents me from retrieving the template via Style Resource option of EB.


Thanks

0
Tina Stancheva
Telerik team
answered on 24 Apr 2012, 09:42 AM
Hi Felipe,

I wasn't able to reproduce the issue, but such issues may arise if you're adding controls from the EB Assets and the RadRibbonView control comes from the Telerik.Windows.Controls.RibbonView.dll, while the RadRibbonTab comes from the Telerik.Windows.Controls.RibbonBar.dll.

However, in a sample project where I've referenced the 2011.3.1220.1040 version of the following assemblies:
  • Telerik.Windows.Controls
  • Telerik.Windows.Controls.Input
  • Telerik.Windows.Controls.Navigation
  • Telerik.Windows.Controls.RibbonView
everything works as expected. I attached my sample project so that you can test it on your side. It also contains the default style and ControlTemplate of the RadRibbonTab control for your reference.

Regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RibbonView and RibbonWindow
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Voltz
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or