# C1.WPF.Core.ThemeExtensions.PropagatePropertiesToDialog

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Core_ThemeExtensions_PropagatePropertiesToDialog_" data-uid="C1.WPF.Core.ThemeExtensions.PropagatePropertiesToDialog*">PropagatePropertiesToDialog Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Core_ThemeExtensions_PropagatePropertiesToDialog_" data-uid="C1.WPF.Core.ThemeExtensions.PropagatePropertiesToDialog*"></a>
<h4 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)">PropagatePropertiesToDialog(FrameworkElement, FrameworkElement, ResourceDictionary)</h4>
<div class="markdown level1 summary"><p>Propagates Language, FlowDirection and Theme properties from the parent control to the dialog window.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void PropagatePropertiesToDialog(this FrameworkElement parentControl, FrameworkElement window, ResourceDictionary theme = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub PropagatePropertiesToDialog(parentControl As FrameworkElement, window As FrameworkElement, Optional theme As ResourceDictionary = Nothing)</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.windows.frameworkelement">FrameworkElement</a></td>
      <td><span class="parametername">parentControl</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a> instance to copy properties from.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></td>
      <td><span class="parametername">window</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a> instance to apply properties to.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.resourcedictionary">ResourceDictionary</a></td>
      <td><span class="parametername">theme</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.resourcedictionary">ResourceDictionary</a> object which contains theme resources.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
