Modifying the SelectionMiniToolBar

6 posts, 1 answers
  1. Ola Karlsson
    Ola Karlsson avatar
    9 posts
    Member since:
    Oct 2009

    Posted 12 Dec 2010 Link to this post

    Hi there,

    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.

    Ola Karlsson
  2. Answer
    Iva Toteva
    Iva Toteva avatar
    1319 posts

    Posted 14 Dec 2010 Link to this post

    Hello Ola Karlsson,

    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.

    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. Bob
    Bob avatar
    17 posts
    Member since:
    Jan 2011

    Posted 07 Feb 2011 Link to this post

    Does Telerik not provide source code for doing things like this? Would be darn handy, and then devs like myself would be able to do work quicker.
  4. Boby
    Boby avatar
    763 posts

    Posted 09 Feb 2011 Link to this post

    Hello Bob,
    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,
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  5. Martin Gunn
    Martin Gunn avatar
    6 posts
    Member since:
    Feb 2008

    Posted 18 Apr 2011 Link to this post

    Hey guys,
    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...
  6. Boby
    Boby avatar
    763 posts

    Posted 18 Apr 2011 Link to this post

    Hello Peter Michie,

    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.

    Kind regards,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top