# C1.WPF.RulesManager.C1RulesManager

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_RulesManager_C1RulesManager" data-uid="C1.WPF.RulesManager.C1RulesManager" class="text-break">C1RulesManager Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.html">C1RulesManager</a> control allows to create or edit conditional formatting rules. Conditional formatting is used to highlight important information and make data interpretation easier.</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">C1RulesManager</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.RulesManager.html">C1.WPF.RulesManager</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.RulesManager.dll</h6>
  <h5 id="C1_WPF_RulesManager_C1RulesManager_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;Accordion&quot;, Type = typeof(C1Accordion))]
[TemplatePart(Name = &quot;AddRuleButton&quot;, Type = typeof(C1Button))]
public class C1RulesManager : C1View</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;Accordion&quot;, Type:=GetType(C1Accordion))&gt;
&lt;TemplatePart(Name:=&quot;AddRuleButton&quot;, Type:=GetType(C1Button))&gt;
Public Class C1RulesManager
    Inherits C1View</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager__ctor" data-uid="C1.WPF.RulesManager.C1RulesManager.#ctor">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.-ctor.html#C1_WPF_RulesManager_C1RulesManager__ctor">C1RulesManager()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.html">C1RulesManager</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_AttentionBackgroundColorProperty" data-uid="C1.WPF.RulesManager.C1RulesManager.AttentionBackgroundColorProperty">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.AttentionBackgroundColorProperty.html">AttentionBackgroundColorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.AttentionBackgroundColor.html#C1_WPF_RulesManager_C1RulesManager_AttentionBackgroundColor">AttentionBackgroundColor</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_AutoApplyProperty" data-uid="C1.WPF.RulesManager.C1RulesManager.AutoApplyProperty">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.AutoApplyProperty.html">AutoApplyProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.AutoApply.html#C1_WPF_RulesManager_C1RulesManager_AutoApply">AutoApply</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_CautionBackgroundColorProperty" data-uid="C1.WPF.RulesManager.C1RulesManager.CautionBackgroundColorProperty">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.CautionBackgroundColorProperty.html">CautionBackgroundColorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.CautionBackgroundColor.html#C1_WPF_RulesManager_C1RulesManager_CautionBackgroundColor">CautionBackgroundColor</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_CautionForegroundColorProperty" data-uid="C1.WPF.RulesManager.C1RulesManager.CautionForegroundColorProperty">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.CautionForegroundColorProperty.html">CautionForegroundColorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.CautionForegroundColor.html#C1_WPF_RulesManager_C1RulesManager_CautionForegroundColor">CautionForegroundColor</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_CriticalBackgroundColorProperty" data-uid="C1.WPF.RulesManager.C1RulesManager.CriticalBackgroundColorProperty">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.CriticalBackgroundColorProperty.html">CriticalBackgroundColorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.CriticalBackgroundColor.html#C1_WPF_RulesManager_C1RulesManager_CriticalBackgroundColor">CriticalBackgroundColor</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_CriticalForegroundColorProperty" data-uid="C1.WPF.RulesManager.C1RulesManager.CriticalForegroundColorProperty">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.CriticalForegroundColorProperty.html">CriticalForegroundColorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.CriticalForegroundColor.html#C1_WPF_RulesManager_C1RulesManager_CriticalForegroundColor">CriticalForegroundColor</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_DefaultBackgroundColorProperty" data-uid="C1.WPF.RulesManager.C1RulesManager.DefaultBackgroundColorProperty">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.DefaultBackgroundColorProperty.html">DefaultBackgroundColorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.DefaultBackgroundColor.html#C1_WPF_RulesManager_C1RulesManager_DefaultBackgroundColor">DefaultBackgroundColor</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_EngineProperty" data-uid="C1.WPF.RulesManager.C1RulesManager.EngineProperty">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.EngineProperty.html">EngineProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.Engine.html#C1_WPF_RulesManager_C1RulesManager_Engine">Engine</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_IsAddButtonVisibleProperty" data-uid="C1.WPF.RulesManager.C1RulesManager.IsAddButtonVisibleProperty">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.IsAddButtonVisibleProperty.html">IsAddButtonVisibleProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.IsAddButtonVisible.html#C1_WPF_RulesManager_C1RulesManager_IsAddButtonVisible">IsAddButtonVisible</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_IsRemoveButtonVisibleProperty" data-uid="C1.WPF.RulesManager.C1RulesManager.IsRemoveButtonVisibleProperty">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.IsRemoveButtonVisibleProperty.html">IsRemoveButtonVisibleProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.IsRemoveButtonVisible.html#C1_WPF_RulesManager_C1RulesManager_IsRemoveButtonVisible">IsRemoveButtonVisible</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_IsRuleNameVisibleProperty" data-uid="C1.WPF.RulesManager.C1RulesManager.IsRuleNameVisibleProperty">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.IsRuleNameVisibleProperty.html">IsRuleNameVisibleProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.IsRuleNameVisible.html#C1_WPF_RulesManager_C1RulesManager_IsRuleNameVisible">IsRuleNameVisible</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_RulesVisibilityProperty" data-uid="C1.WPF.RulesManager.C1RulesManager.RulesVisibilityProperty">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.RulesVisibilityProperty.html">RulesVisibilityProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.RulesVisibility.html#C1_WPF_RulesManager_C1RulesManager_RulesVisibility">RulesVisibility</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_SuccessBackgroundColorProperty" data-uid="C1.WPF.RulesManager.C1RulesManager.SuccessBackgroundColorProperty">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.SuccessBackgroundColorProperty.html">SuccessBackgroundColorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.SuccessBackgroundColor.html#C1_WPF_RulesManager_C1RulesManager_SuccessBackgroundColor">SuccessBackgroundColor</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_SuccessForegroundColorProperty" data-uid="C1.WPF.RulesManager.C1RulesManager.SuccessForegroundColorProperty">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.SuccessForegroundColorProperty.html">SuccessForegroundColorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.SuccessForegroundColor.html#C1_WPF_RulesManager_C1RulesManager_SuccessForegroundColor">SuccessForegroundColor</a> dependency property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_AttentionBackgroundColor" data-uid="C1.WPF.RulesManager.C1RulesManager.AttentionBackgroundColor">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.AttentionBackgroundColor.html#C1_WPF_RulesManager_C1RulesManager_AttentionBackgroundColor">AttentionBackgroundColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value color for representing the attention background state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_AutoApply" data-uid="C1.WPF.RulesManager.C1RulesManager.AutoApply">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.AutoApply.html#C1_WPF_RulesManager_C1RulesManager_AutoApply">AutoApply</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the rules changes should be automatically applied to the engine after the user-interface is changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_CautionBackgroundColor" data-uid="C1.WPF.RulesManager.C1RulesManager.CautionBackgroundColor">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.CautionBackgroundColor.html#C1_WPF_RulesManager_C1RulesManager_CautionBackgroundColor">CautionBackgroundColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value color for representing a caution background state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_CautionForegroundColor" data-uid="C1.WPF.RulesManager.C1RulesManager.CautionForegroundColor">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.CautionForegroundColor.html#C1_WPF_RulesManager_C1RulesManager_CautionForegroundColor">CautionForegroundColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value color for representing a caution foreground state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_CriticalBackgroundColor" data-uid="C1.WPF.RulesManager.C1RulesManager.CriticalBackgroundColor">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.CriticalBackgroundColor.html#C1_WPF_RulesManager_C1RulesManager_CriticalBackgroundColor">CriticalBackgroundColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value color for representing a critical background state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_CriticalForegroundColor" data-uid="C1.WPF.RulesManager.C1RulesManager.CriticalForegroundColor">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.CriticalForegroundColor.html#C1_WPF_RulesManager_C1RulesManager_CriticalForegroundColor">CriticalForegroundColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value color for representing a critical foreground state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_DefaultBackgroundColor" data-uid="C1.WPF.RulesManager.C1RulesManager.DefaultBackgroundColor">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.DefaultBackgroundColor.html#C1_WPF_RulesManager_C1RulesManager_DefaultBackgroundColor">DefaultBackgroundColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value color for representing the default background state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_Engine" data-uid="C1.WPF.RulesManager.C1RulesManager.Engine">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.Engine.html#C1_WPF_RulesManager_C1RulesManager_Engine">Engine</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the rules engine which holds the rules to be edited.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_IsAddButtonVisible" data-uid="C1.WPF.RulesManager.C1RulesManager.IsAddButtonVisible">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.IsAddButtonVisible.html#C1_WPF_RulesManager_C1RulesManager_IsAddButtonVisible">IsAddButtonVisible</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the button to add new rules is visible.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_IsRemoveButtonVisible" data-uid="C1.WPF.RulesManager.C1RulesManager.IsRemoveButtonVisible">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.IsRemoveButtonVisible.html#C1_WPF_RulesManager_C1RulesManager_IsRemoveButtonVisible">IsRemoveButtonVisible</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the button to remove rules is visible.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_IsRuleNameVisible" data-uid="C1.WPF.RulesManager.C1RulesManager.IsRuleNameVisible">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.IsRuleNameVisible.html#C1_WPF_RulesManager_C1RulesManager_IsRuleNameVisible">IsRuleNameVisible</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the name of the rule is visible in the rule editor.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_RulesVisibility" data-uid="C1.WPF.RulesManager.C1RulesManager.RulesVisibility">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.RulesVisibility.html#C1_WPF_RulesManager_C1RulesManager_RulesVisibility">RulesVisibility</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the visibility of the different kinds of rules.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_SuccessBackgroundColor" data-uid="C1.WPF.RulesManager.C1RulesManager.SuccessBackgroundColor">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.SuccessBackgroundColor.html#C1_WPF_RulesManager_C1RulesManager_SuccessBackgroundColor">SuccessBackgroundColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value color for representing a success background state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_SuccessForegroundColor" data-uid="C1.WPF.RulesManager.C1RulesManager.SuccessForegroundColor">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.SuccessForegroundColor.html#C1_WPF_RulesManager_C1RulesManager_SuccessForegroundColor">SuccessForegroundColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value color for representing a success foreground state.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_RulesManager_C1RulesManager_Dispose_System_Boolean_" data-uid="C1.WPF.RulesManager.C1RulesManager.Dispose(System.Boolean)">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.Dispose.html#C1_WPF_RulesManager_C1RulesManager_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_Load_System_IO_Stream_" data-uid="C1.WPF.RulesManager.C1RulesManager.Load(System.IO.Stream)">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.Load.html#C1_WPF_RulesManager_C1RulesManager_Load_System_IO_Stream_">Load(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the rules definition from a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_OnApplyTemplate" data-uid="C1.WPF.RulesManager.C1RulesManager.OnApplyTemplate">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.OnApplyTemplate.html#C1_WPF_RulesManager_C1RulesManager_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_C1RulesManager_Save_System_IO_Stream_" data-uid="C1.WPF.RulesManager.C1RulesManager.Save(System.IO.Stream)">
          <a class="xref" href="C1.WPF.RulesManager.C1RulesManager.Save.html#C1_WPF_RulesManager_C1RulesManager_Save_System_IO_Stream_">Save(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the rules definition into a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
