3 Answers, 1 is accepted
0
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:
Hope this helps.
All the best,
Todor
the Telerik team
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.
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:
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
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
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:
Todor
the Telerik team
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:
- Open the Themes solution, which is installed in C:\Program Files (x86)\Telerik\<Controls version>\Themes folder by default.
- After you have opened the solution once, go to the desired theme project.
- 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.
- 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.
Hope this helps.
Regards,
Todor
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.