# C1.WPF.Core.ThemeExtensions

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Core_ThemeExtensions" data-uid="C1.WPF.Core.ThemeExtensions" class="text-break">ThemeExtensions Class
</h1>
  <div class="markdown level0 summary"><p>Provides helper methods to handle theme resources.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">ThemeExtensions</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Core.html">C1.WPF.Core</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Core.dll</h6>
  <h5 id="C1_WPF_Core_ThemeExtensions_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class ThemeExtensions</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Module ThemeExtensions</code></pre>
  </div>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Core_ThemeExtensions_PropagatePropertiesToDialog_System_Windows_FrameworkElement_System_Windows_FrameworkElement_System_Windows_ResourceDictionary_" data-uid="C1.WPF.Core.ThemeExtensions.PropagatePropertiesToDialog(System.Windows.FrameworkElement,System.Windows.FrameworkElement,System.Windows.ResourceDictionary)">
          <a class="xref" href="C1.WPF.Core.ThemeExtensions.PropagatePropertiesToDialog.html#C1_WPF_Core_ThemeExtensions_PropagatePropertiesToDialog_System_Windows_FrameworkElement_System_Windows_FrameworkElement_System_Windows_ResourceDictionary_">PropagatePropertiesToDialog(FrameworkElement, FrameworkElement, ResourceDictionary)</a>
        </td>
        <td class="markdown level1 summary"><p>Propagates Language, FlowDirection and Theme properties from the parent control to the dialog window.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_ThemeExtensions_TryFindTheme_System_Windows_FrameworkElement_" data-uid="C1.WPF.Core.ThemeExtensions.TryFindTheme(System.Windows.FrameworkElement)">
          <a class="xref" href="C1.WPF.Core.ThemeExtensions.TryFindTheme.html#C1_WPF_Core_ThemeExtensions_TryFindTheme_System_Windows_FrameworkElement_">TryFindTheme(FrameworkElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for theme resources in the visual tree.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
