ControlTemplate for C1RichTextBoxToolbar

Posted by: scadavantagesupport on 1 November 2017, 6:53 am EST

    • Post Options:
    • Link

    Posted 1 November 2017, 6:53 am EST

    Using visual studio 2017 I extracted the control template for the C1RichTextBoxToolbar. However, when I try to use it I get lots of bind errors (empty tabs for example). Is there a piece of WPF magic that I am missing to get this to work?

    Please see attached project.

    Editor2.zip

  • Posted 1 November 2017, 7:38 pm EST

    Hi,

    Thank you for attaching the sample application.

    Apart from some minor namespace issues, we could not observe any issues in the sample and were able to run the same, observing the following output. Could you please take a look and let us know if this is your desired output?

    Also, regarding the blank/empty tabs it might be due to lack of space available to render C1RichTextBoxToolbar components. Try increasing the width and it should resolve the empty tabs.

    We have modified the sample and uploaded the same for your reference, which can be downloaded from: https://www.dropbox.com/s/mbpu176vrlp4k1z/Editor_modified.zip?dl=0

    Regards,

    Ruchir Agarwal

  • Posted 6 November 2017, 6:10 am EST

    If you run in the debugger then there is a flood of binding errors in the output window. None of the localized text appears. Your posted update does not fix the issue.

  • Posted 6 November 2017, 8:55 pm EST

    Hi,

    We misunderstood the issue earlier.

    The issue was because the text needed by these tabs etc were being loaded properly from a resources file. We have now added the resources in the project itself. You may download the modified sample using the following URL:

    https://www.dropbox.com/s/grfpcp2g9qnbpzl/Editor_modified_Text.zip?dl=0

    For localizing C1RichTextBox, please refer to following blog post and documentation link respectively:

    https://www.grapecity.com/en/blogs/localization-localizacion-lokalisering

    http://helpcentral.componentone.com/nethelp/c1studiowpf/webframe.html#WPFLocalization.html

    Regards,

    Ruchir Agarwal

  • Posted 7 November 2017, 9:11 am EST

    Thank-you, that has solved my problem.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels