# Apply Themes

## Content



GanttView supports built-in ComponentOne themes available in **C1.WPF.Theming** library. You can apply any of the available C1 themes to the GanttView control and provide a customized and consistent appearance to the application. To understand how themes can be used effectively, see [Theming](https://developer.mescius.com/componentone/docs/wpf/online-studio/Theming.html).

The following image shows a GanttView with **System** theme applied to it.

![Themes for GanttView](https://cdn.mescius.io/document-site-files/images/14a478dc-2b0f-437a-969b-b17e430e375e/images/gantt-themes.png)

The following steps illustrate how to apply C1 themes to GanttView. This example uses the sample created in the [Quick start](/componentone/docs/wpf/online-ganttview/GanttView-QuickStart).

1.  Create a Quick start application and install the following NuGet packages using the NuGet Package Manager.
    *   **C1.WPF.Themes**
    *   **C1.WPF.Themes.System**
2.  Switch to the MainWindow.xaml.cs file and add the following import statements.
    *   using C1.WPF.Themes;
3.  Create a class, say MyTheme, to create an object of the C1Themes class.
    
    ```csharp
    public class MyThemes
    {
        private static C1Theme _myTheme = null;
        public static C1Theme MyTheme
        {
            get
            {
                if (_myTheme == null)
                {
                    _myTheme = new C1ThemeSystem();
                }
                return _myTheme;
            }
        }
    }
    ```
    
4.  Add the following code in the loaded event to apply the System theme to the GanttView control.
    
    ```csharp
    //Apply C1 theme to GanttView 
    C1Theme.ApplyTheme(gv, MyThemes.MyTheme);
    ```