We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Using RichTextBoxRibbon

Thread ID:

Created:

Updated:

Platform:

Replies:

116913 Jun 30,2014 01:06 AM Jul 16,2014 01:54 AM WPF 5
loading
Tags: RichTextBoxAdv
Chuck Berg
Asked On June 30, 2014 01:06 AM

Now that I'm able to bind my RichTextBoxRibbon to my RichTextBoxAdv, I have questions on how to use the RichTextBoxRibbon.

The ribbon does a good job of building a complete text editing application, but I don't need or want that.  I want a control that I can embed in my application.  Therefore...

  1. How do I set "Visual Style" programmatically - either XAML (preferred) or C#?
  2. How do I change the colors used in the "Metro" Visual Style?
  3. How do I hide the "Visual Style" tab?
  4. How do I hide the "Page Layout" tab?
  5. How do I hide the "File" tab?
  6. How do I hide the "ReadOnly" button?
  7. How do I hide the Quick Access "Save" button?
  8. How do I hide the "Customize Quick Access Ribbon" button?

Arumuga Perumal S [Syncfusion]
Replied On July 3, 2014 07:26 AM

Hi Chuck,

Thank you for using Syncfusion products.

Our RichTextRibbon control is customized from Ribbon control. We can also be able to customize a Ribbon control similar to RichTextRibbon control based on our requirement.

Regarding ‘Query 1’:
We can set VisualStyle programattically by using SetVisualStyle method of SkinStorage. We have mentioned the sample code snippet below:
SkinStorage.SetVisualStyle(this, "Metro");

Regarding ‘Query 2’:
We can change the colours used in the Metro Visual Style by setting the MetroBrush, MetroBorderBrush, MetroForegroundBrush and MetroBackgroundBrush of SkinStorage.

Regarding ‘Query 5’:
We can hide the File tab in Ribbon by set the Visibility of BackStageButton of Ribbon. If we collapse the BackStageButton, some alignment issues occur. We have already fixed this issue in our side internally. Kindly follow the incident #126941 to get fix for this issue.

Regarding ‘Query 3,4,6,7,8’:
If we do not wish to include the mentioned tool bar items, we need not include these in the Ribbon control.

We have prepared a sample tried on our side as per your requirement. Please do find the attachment.

Please let us know if you have any other questions.

Regards,
Arumuga Perumal S.


Attachment: Sample_36ae8c2e.zip

Chuck Berg
Replied On July 7, 2014 10:03 PM

I realize that your RichTextRibbon control is customized from Ribbon control and that I could create my own RichTextRibbon control to met my requirements.  But I would rather not re-write all of the code that you've already written.

The sample you have created only includes some of the functionality from your RichTextRibbon control and leaves out many functions that I still need.  Perhaps you can provide a sample that consists of 100% of your existing RichTextRibbon control and then I could customize that as much as I need.


Arumuga Perumal S [Syncfusion]
Replied On July 11, 2014 07:08 AM

Hi Chuck,

Thank you for your update.

We have attached a sample with customized Ribbon control as per your requirement. Please do find the sample below.

Please let us know if you have any other questions.

Regards,
Arumuga Perumal S.


Attachment: OfficeUICustomizedRibbon_3dc8cb5.zip

Chuck Berg
Replied On July 15, 2014 05:47 PM

This is great - thanks!  Unfortunately, a number of the buttons are not working in this sample.  They include:

  • Grow Font
  • Shrink Font
  • Font Color
  • Insert Table (using the grid)

In addition, the Font and Size drop-downs are empty.  Please advise.



Arumuga Perumal S [Syncfusion]
Replied On July 16, 2014 01:54 AM

Hi Chuck,

Thank you for your update.

We have modified the provided sample and now all the buttons are working fine. Please do find the modified sample from the below link. Try running the sample and let us know if this helps you.

Please let us know if you have any other questions.

Thanks,
Arumuga Perumal S.


Attachment: OfficeUICustomizedRibbon_99594fb8.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;