This is a migrated thread and some comments may be shown as answers.

Hide document layout selector in status bar

3 Answers 92 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Tuo
Top achievements
Rank 1
Tuo asked on 24 Aug 2012, 01:17 PM
Hello Telerik,
       Is there anyway to hide the document layout selector or scaler in RadRichTextBoxStatusBar?
       Thanks.
Best,
Tuo

3 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 27 Aug 2012, 01:16 PM
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,
Todor
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Maikel
Top achievements
Rank 1
answered on 16 Jan 2013, 10:44 AM
Hi,

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()         
    StyleManager
.ApplicationTheme = New Windows7Theme()    
     InitializeComponent()   
  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 ?

Ann
0
Todor
Telerik team
answered on 17 Jan 2013, 03:26 PM
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.

 

Regards,
Todor
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
Tuo
Top achievements
Rank 1
Answers by
Todor
Telerik team
Maikel
Top achievements
Rank 1
Share this question
or