Issue with RadRichTextBoxStatusBar

5 posts, 0 answers
  1. Andrea
    Andrea avatar
    16 posts
    Member since:
    Jul 2012

    Posted 09 Apr 2014 Link to this post

    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?
  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 11 Apr 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. Andrea
    Andrea avatar
    16 posts
    Member since:
    Jul 2012

    Posted 15 Apr 2014 in reply to Petya Link to this post

    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
  5. Petya
    Admin
    Petya avatar
    975 posts

    Posted 16 Apr 2014 Link to this post

    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.

     
  6. Andrea
    Andrea avatar
    16 posts
    Member since:
    Jul 2012

    Posted 16 Apr 2014 in reply to Petya Link to this post

    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!
Back to Top
DevCraft banner