# C1.Win.Themes.C1ThemeController.RegisterThemes

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Themes_C1ThemeController_RegisterThemes_" data-uid="C1.Win.Themes.C1ThemeController.RegisterThemes*">RegisterThemes Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Themes_C1ThemeController_RegisterThemes_" data-uid="C1.Win.Themes.C1ThemeController.RegisterThemes*"></a>
<h4 id="C1_Win_Themes_C1ThemeController_RegisterThemes_System_Reflection_Assembly_" data-uid="C1.Win.Themes.C1ThemeController.RegisterThemes(System.Reflection.Assembly)">RegisterThemes(Assembly)</h4>
<div class="markdown level1 summary"><p>Loads all themes from an assembly, and registeres them for use by theme controllers
in the current application.</p>
<p>
This method scans all resources in the specified assembly, and selects
those with names ending in ".c1theme" (case insensitive).
If a theme cannot be loaded (e.g. due to a duplicate name or other error),
it is skipped (i.e. no exception is thrown).
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static string[] RegisterThemes(Assembly assembly)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function RegisterThemes(assembly As Assembly) As String()</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.reflection.assembly">Assembly</a></td>
      <td><span class="parametername">assembly</span></td>
      <td><p>The assembly to load/register themes from.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</td>
      <td><p>The array of names of all loaded/registered themes.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
