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

Issue with RadRichTextBoxStatusBar

4 Answers 58 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Andrea
Top achievements
Rank 1
Andrea asked on 09 Apr 2014, 08:14 AM
Hi,

Since upgrading from 2013.3.1204 to 2014.1.0224.1050, this control no longer works when the application is run. It throws the below error:

The attachable property 'RichTextCommand' was not found in type 'RadRichTextBoxRibbonUI'. [Line: 18 Position: 36]

   at MS.Internal.XcpImports.CreateFromXaml(UnmanagedMemoryStream stream, String sourceAssemblyName, Boolean createNamescope, Boolean requireDefaultNamespace, Boolean allowEventHandlers, String xamlResourceUriString, Boolean isBinaryContent)
   at System.Windows.Controls.Control.GetBuiltInStyle(IntPtr nativeTarget, IntPtr& nativeStyle)

The xaml I am using (which previously worked) is:

<telerik:RadRichTextBoxStatusBar
    Grid.Row="1"
    AssociatedRichTextBox="{Binding ElementName=editor}"
    UseLayoutRounding="True" />

My first thought was that I am missing a reference, but I can't see what. I have referenced:

Telerik.Windows.Controls
Telerik.Windows.Controls.Docking
Telerik.Windows.Controls.GridView
Telerik.Windows.Controls.Input
Telerik.Windows.Controls.Navigation
Telerik.Windows.Controls.RibbonView
Telerik.Windows.Controls.RichTextBoxUI
Telerik.Windows.Data
Telerik.Windows.Documents
Telerik.Windows.Documents.Core
Telerik.Windows.Documents.Flow
Telerik.Windows.Documents.FormatProviders.Html

Any ideas?

4 Answers, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 11 Apr 2014, 08:54 AM
Hello,

I'm afraid we are unaware of such issue and I could not reproduce it on our end.

Could you please let us know what leads you to believe the RadRichTextBoxStatusBar causes the observed error? Additionally, is the error observed when running the project or when interacting with one of the controls in the view?

What I'd suggest is to check whether all referenced Telerik assemblies are the same version. You could also try cleaning and rebuilding your project.

Let me know how it goes.

Regards,
Petya
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Andrea
Top achievements
Rank 1
answered on 15 Apr 2014, 08:29 AM
Hi Petya,

Thanks for your reply. All assemblies are at the same version and I've cleaned and rebuild the project several times. I'm sure it is this control because as soon as I remove it, I no longer get that error.

Any other ideas?

Andrea
0
Petya
Telerik team
answered on 16 Apr 2014, 11:09 AM
Hello Andrea,

The issue is particularly strange since RadRichTextBoxStatusBar does not use commands, such error seems like something that RadRichTextBoxRibbonUI might produce. Like I said, we are unaware of any similar issues and I could not replicate the behavior.

Could you please try to isolate the issue in a simple sample project and send it to us, so that we can further investigate the reason for the behavior?

Thank you in advance.

Regards,
Petya
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Andrea
Top achievements
Rank 1
answered on 16 Apr 2014, 11:24 AM
Hi Petya,

Thanks for getting back to me. I have figured it out! It looks like the Ribbon assembly wasn't being copied to the bin folder when the solution was being built. Once I fixed that, it worked like a charm. Thanks for your help!
Tags
RichTextBox
Asked by
Andrea
Top achievements
Rank 1
Answers by
Petya
Telerik team
Andrea
Top achievements
Rank 1
Share this question
or