ComponentOne AppView for ASP.NET WebForms
Task Based Help / Theming / Setting a Default Theme in Code
In This Topic
    Setting a Default Theme in Code
    In This Topic

    You can also set one of the default theme swatches through code.

    1. Switch to Code View by right-clicking the page, either from the Design View or from the Source View, and selecting View Code from the list.
    2. Insert the following code into the PageLoad event:
      Copy Code
      this.C1AppView1.ThemeSwatch="e";