# C1RichTextBox Themes

## Content



**RichTextBox for WPF** incorporates several themes that allow you to customize the appearance of your grid. When you first add a [C1RichTextBox](/componentone/api/wpf/online-richtextbox/dotnet-api/C1.WPF.RichTextBox/C1.WPF.RichTextBox.C1RichTextBox.html) control to the page, it appears similar to the following image:

![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/default.png)

This is the control's default appearance using **C1SimplifiedRichTextBoxToolbar**. You can change this appearance by using one of the built-in themes or by creating your own custom theme. All of the built-in themes are based on WPF Toolkit themes. The built-in themes are described and pictured below; note that in the images below, **C1SimplifiedRichTextBoxToolbar** has been selected to show selected styles:

|   **Theme Name**   |   **Theme Preview**   |
| --- | --- |
|   C1ThemeBureauBlack   |   ![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/bureaublack.png)   |
|   C1ThemeExpressionDark   |   ![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/expressiondark.png)   |
|   C1ThemeExpressionLight   |   ![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/expressionlight.png)   |
|   C1Blue   |   ![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/c1blue.png)   |
|   C1ThemeOffice2007Blue   |   ![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/c1themeoffice2007blue.png)   |
|   C1ThemeOffice2007Black   |   ![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/c1themeoffice2007black.png)   |
|   C1ThemeOffice2007Silver   |   ![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/c1themeoffice2007silver.png)   |
|   C1ThemeOffice2010Blue   |   ![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/c1themeoffice2010blue.png)   |
|   C1ThemeOffice2010Black   |   ![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/c1themeoffice2010black.png)   |
|   C1ThemeOffice2010Silver   |   ![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/c1themeoffice2010silver.png)   |
|   C1ThemeShinyBlue   |   ![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/shinyblue.png)   |
|   C1ThemeWhistlerBlue   |   ![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/whistlerblue.png)   |
|   C1ThemeOffice2013White   | ![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/c1themeoffice2013white.png) |
| C1ThemeOffice2013LightGray |   ![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/c1themeoffice2013lightgray.png)   |
|   C1ThemeOffice2013DarkGray   |   ![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/c1themeoffice2013darkgray.png)   |
|   C1ThemeOffice2016Black   |   ![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/c1themeoffice2016black.png)   |
|   C1ThemeOffice2016Colorful   |   ![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/c1themeoffice2016colorful.png)   |
|   C1ThemeOffice2016DarkGray   |   ![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/c1themeoffice2016darkgray.png)   |
|   C1ThemeOffice2016White   |   ![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/c1themeoffice2016white.png)   |
|   C1ThemeCosmopolitanDark   |   ![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/cosmopolitandark.png)   |
|   C1ThemeCosmopolitan   |   ![](https://cdn.mescius.io/document-site-files/images/f14c4281-7088-4b33-9b40-4a5f7acf258d/graphics/themes/cosmopolitan.png)   |


> type=note
> **Note**: Themes are only supported in 4.5.2 version.

To set an element's theme, use the **ApplyTheme** method. First add a reference to the theme assembly to your project, and then set the theme in code, like this:

```vbnet
Private Sub Window_Loaded(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles MyBase.Loaded
   Dim theme As New C1ThemeExpressionDark
   ' Using ApplyTheme
   C1Theme.ApplyTheme(LayoutRoot, theme)
```

```csharp
private void Window_Loaded(object sender, RoutedEventArgs e)
   {
      C1ThemeExpressionDark theme = new C1ThemeExpressionDark();
      //Using ApplyTheme
      C1Theme.ApplyTheme(LayoutRoot, theme);
   }
```

To apply a theme to the entire application, use the **System.Windows.ResourceDictionary.MergedDictionaries** property. First add a reference to the theme assembly to your project, and then set the theme in code, like this:

```vbnet
Private Sub Window_Loaded(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles MyBase.Loaded
   Dim theme As New C1ThemeExpressionDark
   ' Using Merged Dictionaries
Application.Current.Resources.MergedDictionaries.Add(C1Theme.GetCurrentThemeResources(theme))
End Sub
```

```csharp
private void Window_Loaded(object sender, RoutedEventArgs e)
   {
      C1ThemeExpressionDark theme = new C1ThemeExpressionDark();
      //Using Merged Dictionaries        Application.Current.Resources.MergedDictionaries.Add(C1Theme.GetCurrentThemeResources(theme));
   }
```

Note that this method works only when you apply a theme for the first time. If you want to switch to another ComponentOne theme, first remove the previous theme from **Application.Current.Resources.MergedDictionaries**.