# C1.WPF.Schedule.CalendarBase.DefaultThemeKey

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_WPF_Schedule_CalendarBase_DefaultThemeKey" data-uid="C1.WPF.Schedule.CalendarBase.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 calendar 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.4.6.2.dll</h6>
<h5 id="C1_WPF_Schedule_CalendarBase_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 calendar control.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_Schedule_CalendarBase_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 static 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.CalendarBase.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 calendar control.
<example>
<pre><code class="lang-csharp">&lt;Application.Resources&gt;
&lt;ResourceDictionary&gt;
&lt;ResourceDictionary x:Key=&quot;{x:Static c1sched:CalendarBase.DefaultThemeKey}&quot;
Source=&quot;/C1.WPF.Schedule.4.6.2;component/themes/CalendarThemes/Office2007/Blue.xaml&quot; /&gt;
&lt;/ResourceDictionary&gt;
&lt;/Application.Resources&gt;</code></pre></example></p>
</div>
</div>
