I've seen a couple posts about this topic but I'm still unsure how to go about my task.
I want to remove certain options from the normal mini toolbar, specifically the "font selection", "font size", "font color" and "highlighting".
A description of how I could do this, would be greatly appreciated.
Cheers,
Ola Karlsson
5 Answers, 1 is accepted
There is a blogpost dealing with this question here. You cannot add or remove buttons to the default SelectionMiniToolBar, but you can create your custom selection mini toolbar, implementing ISelectionMiniToolBar and mark it with the [CustomSelectionMiniToolBar] attribute. It will then be automatically loaded by MEF. if you do not want to use MEF, you can manually invoke:
this
.radRichTextBox.SelectionMiniToolBar =
new
MySelectionToolBar();
Try it out and let us know if you encounter any difficulties. Greetings,
Iva
the Telerik team
All customers who have purchased the Silverlight/WPF suite get access to the full source code. Notably, RadRichTextBox's source is available on demand, through a support ticket.
Best wishes,
Boby
the Telerik team
Just wondering if it would be possible for us to have a copy of the RichText Source code, i can raise a support ticket for this if required,
can you let me know if the source code includes an example ISelectionMiniToolBar ? as we do not want to use MEF, but would like the use of a SelectionMiniToolBar without too much work, also this would be implimented in WPF NOT Silverlight...
One sample implementation of custom selection mini toolbar can be found in this forum thread (the code can be easily ported to WPF, as the API is almost exactly the same). If you do not want to use MEF, you can just create an instance of the type manually and assign it to the SelectionMiniToolBar property of RadRichTextBox.
The default implementation - SelectionMiniToolBar - is in Telerik.Windows.Controls.RichTextBoxUI assembly.
If you need RadRichTextBox's source code - just open support ticket with inquiry and we will provide it to you.
Don't hesitate to contact us if you have other questions.
Boby
the Telerik team