Themes for WinForms | ComponentOne
In This Topic
    In This Topic

    C1ThemePicker is a combo box, whi​ch can be used to select themes at runtime. The C1ThemePicker control is provided by the C1.Win.C1Themes.Extended.4.5.2 assembly. C1ThemePicker can be simply dropped from the Toolbox and added to the form.

    The C1ThemePicker control provides a drop-down list to select one of the registered themes and apply it to the assigned C1ThemeController in the form. C1ThemePicker makes it easy for the user to switch between different themes at runtime.

    The GIF below depicts the ThemePicker control docked in a form with FlexGid.


    Note: In order to work with the C1ThemePicker control, the following dependent assemblies should be added to your project:

    • C1.Win.C1Themes.4.5.2
    • C1.Win.C1Themes.Extended.4.5.2
    • C1.Win.C1Input.4.5.2

    ThemePicker is not yet available in .Net 5 assembly.

    Filtering Themes

    The user can also filter the list of available themes in ThemePicker. For example, the user can switch the application UI between Office 2016 themes using the Filter property of C1ThemePicker class.

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        C1ThemePicker1.Filter = "2016"
    End Sub
    private void Form1_Load(object sender, EventArgs e)
        c1ThemePicker1.Filter = "2016";