Hide document layout selector in status bar

4 posts, 0 answers
  1. Tuo
    Tuo avatar
    20 posts
    Member since:
    Oct 2011

    Posted 24 Aug 2012 Link to this post

    Hello Telerik,
           Is there anyway to hide the document layout selector or scaler in RadRichTextBoxStatusBar?
  2. Todor
    Todor avatar
    168 posts

    Posted 27 Aug 2012 Link to this post

    Hi Tuo,

    Please find attached a project illsutrating how the layout selector can be removed from RadRichTextBoxStatusBar.

    There I am using external themes to style the RadRichTextBox control. Here you can read our detailed article about how to use implicit styles - the better approach to style your application.

    In the attached project, for your convenience, I left you 'NOTE:' comments, so please, search for them when you open it. In these comments, I have explained how to hide the LayoutModeSelector buttons and/or the slider.

    The 'NOTE:' comments are placed in the following files:
    • App.xaml
    • Themes/Telerik.Windows.Controls.RichTextBoxUI.xaml 

    Hope this helps.
    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Maikel
    Maikel avatar
    2 posts
    Member since:
    Mar 2011

    Posted 16 Jan 2013 Link to this post


    I tried the solution you suggest, but it does not work if you are using a theme.
    I set the theme in the constructor like this:
        Public Sub New()         
    .ApplicationTheme = New Windows7Theme()    
      End Sub

    I use the styles in the xaml and i see it change in the preview (i do not see the theme in the preview), but at runtime i see the theme, but not the changes i made with the style.

    Can you send an example where you use the build-in themes ?

  4. Todor
    Todor avatar
    168 posts

    Posted 17 Jan 2013 Link to this post

    Hello Ann,

    If you are using the implicit theming mechanism as described here and illustrated in my previous post, you should use the NoXaml assemblies, add the XAML files for the theme you wish to use in your project and apply the changes there. In that case, there is no need to set the ApplicationTheme using StyleManager.

    In case you are using the assemblies that contain XAML and you don't have any XAML resource files in your project, you can make the changes in our built-in themes. In that case you should:
    1. Open the Themes solution, which is installed in C:\Program Files (x86)\Telerik\<Controls version>\Themes folder by default. 
    2. After you have opened the solution once, go to the desired theme project. 
    3. Edit the XAML file which you want to change. In your scenario you should open Windows7 project and to edit Themes\Telerik.Windows.Controls.RichTextBoxUI.xaml file.
    4. After you made the desired changes, build the project.
    Then you should add a reference to the outputed Telerik.Windows.Themes.Windows7.dll in your application, in order to use the changed theme.

    Hope this helps.


    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top