# C1.WPF.Schedule.C1Scheduler.DefaultThemeKey

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_WPF_Schedule_C1Scheduler_DefaultThemeKey" data-uid="C1.WPF.Schedule.C1Scheduler.DefaultThemeKey" class="text-break">DefaultThemeKey Field
</h1>
<div class="markdown level0 summary"><p>Gets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.componentresourcekey">ComponentResourceKey</a> that references the default theme
that is defined for the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.html">C1Scheduler</a> control.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Schedule.html">C1.WPF.Schedule</a></h6>
<h6><strong>Assembly</strong>: C1.WPF.Schedule.dll</h6>
<h5 id="C1_WPF_Schedule_C1Scheduler_DefaultThemeKey_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static readonly ComponentResourceKey DefaultThemeKey</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared ReadOnly DefaultThemeKey As ComponentResourceKey</code></pre>
</div>
<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.windows.componentresourcekey">ComponentResourceKey</a></td>
      <td>Gets the  that references the default theme that is defined for the  control.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_Schedule_C1Scheduler_DefaultThemeKey_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>You can use this read-only static field in XAML by assigning its
value to another property value.
Specifically, this field's value defines the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.componentresourcekey">ComponentResourceKey</a>
that is used to look up the default theme.
To redefine this theme, reference the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.DefaultThemeKey.html">DefaultThemeKey</a> by using the
x:Static Markup Extension and assign that value as the x:Key Attribute of
the new <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.resourcedictionary">ResourceDictionary</a> object.
You can use this field in XAML as an x:Key Attribute
of a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.resourcedictionary">ResourceDictionary</a> that redefines the theme for the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.html">C1Scheduler</a> control.
<example></example></p>
<pre><code class="lang-csharp">&lt;Application.Resources&gt;
	&lt;ResourceDictionary&gt;
		&lt;ResourceDictionary x:Key="{x:Static c1sched:C1Scheduler.DefaultThemeKey}"
							Source="/C1.WPF.Schedule;component/themes/SchedulerThemes/Office2007/Silver.xaml" /&gt;
	&lt;/ResourceDictionary&gt;
&lt;/Application.Resources&gt;</code></pre>

</div>
</div>
