In this step, you'll add the custom theme to your application.
-
Open a form belonging to your application in the Visual Studio's forms designer. In this example we will open a ComponentOne WinForms sample, SimpleTextEditor2.
- Add the C1ThemeController from the toolbox onto your form. Also, provide reference to C1.C1Zip.4.dll in your project.
-
Click on the C1ThemeController component's Add theme... action item. This will show a file open dialog. Select the theme file and click OK.
The selected theme will be added to your C# or VB project as an embedded resource in a Themes folder, and will be available for selection from the themes list provided by the C1ThemeController.
-
Run and observe your changes.