Work with Ribbon / Themes
Themes

A user can apply themes to the C1Ribbon control in the WinForms application by selecting one of the built-in themes, which can be accessed by adding the reference assembly C1.Win.C1Themes.4.5.2.

themes in ribbon

The assembly provides the following built-in themes:

In this section we have covered an example of adding the Themes functionality to C1Ribbon through code. We have used a ComboBox control to populate the available themes. You can use any preferred control to populate the Themes. Refer the code snippet below.

Public Class ComboBoxHost
    Inherits RibbonControlHost
    Public Sub New()
        MyBase.New(New System.Windows.Forms.ComboBox())
        Dim ribbonBox = DirectCast(MyBase.Control, ComboBox)
        ribbonBox.Items.AddRange(C1ThemeController.GetThemes())
        ribbonBox.Text = "Select a theme"
        AddHandler ribbonBox.SelectedIndexChanged, AddressOf RibbonBox_SelectedIndexChanged
    End Sub

    Private Sub RibbonBox_SelectedIndexChanged(sender As Object, e As EventArgs)
        Dim themmeCombo As ComboBox = DirectCast(sender, ComboBox)
        Dim theme As C1Theme = C1ThemeController.GetThemeByName(themmeCombo.Text, False)
        C1ThemeController.ApplyThemeToControlTree(Me.Ribbon, theme)
    End Sub
End Class