# C1.WPF.RulesManager.RulesManagerNewRuleForm

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_RulesManager_RulesManagerNewRuleForm" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm" class="text-break">RulesManagerNewRuleForm Class
</h1>
  <div class="markdown level0 summary"><p>Editor form for <a class="xref" href="C1.WPF.RulesManager.RulesEngineRule.html">RulesEngineRule</a>.</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">RulesManagerNewRuleForm</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_RulesManagerNewRuleForm_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;Root&quot;, Type = typeof(FrameworkElement))]
[TemplatePart(Name = &quot;OkButton&quot;, Type = typeof(C1Button))]
[TemplatePart(Name = &quot;CancelButton&quot;, Type = typeof(C1Button))]
public class RulesManagerNewRuleForm : C1View</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;Root&quot;, Type:=GetType(FrameworkElement))&gt;
&lt;TemplatePart(Name:=&quot;OkButton&quot;, Type:=GetType(C1Button))&gt;
&lt;TemplatePart(Name:=&quot;CancelButton&quot;, Type:=GetType(C1Button))&gt;
Public Class RulesManagerNewRuleForm
    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_RulesManagerNewRuleForm__ctor" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.#ctor">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.-ctor.html#C1_WPF_RulesManager_RulesManagerNewRuleForm__ctor">RulesManagerNewRuleForm()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.html">RulesManagerNewRuleForm</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_RulesManagerNewRuleForm_AttentionBackgroundColorProperty" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.AttentionBackgroundColorProperty">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.AttentionBackgroundColorProperty.html">AttentionBackgroundColorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.AttentionBackgroundColor.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_AttentionBackgroundColor">AttentionBackgroundColor</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesManagerNewRuleForm_CancelClicked" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.CancelClicked">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.CancelClicked.html">CancelClicked</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the Cancel button is clicked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesManagerNewRuleForm_CautionBackgroundColorProperty" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.CautionBackgroundColorProperty">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.CautionBackgroundColorProperty.html">CautionBackgroundColorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.CautionBackgroundColor.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_CautionBackgroundColor">CautionBackgroundColor</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesManagerNewRuleForm_CautionForegroundColorProperty" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.CautionForegroundColorProperty">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.CautionForegroundColorProperty.html">CautionForegroundColorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.CautionForegroundColor.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_CautionForegroundColor">CautionForegroundColor</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesManagerNewRuleForm_CriticalBackgroundColorProperty" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.CriticalBackgroundColorProperty">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.CriticalBackgroundColorProperty.html">CriticalBackgroundColorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.CriticalBackgroundColor.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_CriticalBackgroundColor">CriticalBackgroundColor</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesManagerNewRuleForm_CriticalForegroundColorProperty" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.CriticalForegroundColorProperty">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.CriticalForegroundColorProperty.html">CriticalForegroundColorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.CriticalForegroundColor.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_CriticalForegroundColor">CriticalForegroundColor</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesManagerNewRuleForm_DefaultBackgroundColorProperty" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.DefaultBackgroundColorProperty">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.DefaultBackgroundColorProperty.html">DefaultBackgroundColorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.DefaultBackgroundColor.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_DefaultBackgroundColor">DefaultBackgroundColor</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesManagerNewRuleForm_OKClicked" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.OKClicked">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.OKClicked.html">OKClicked</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the OK button is clicked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesManagerNewRuleForm_RuleProperty" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.RuleProperty">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.RuleProperty.html">RuleProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.Rule.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_Rule">Rule</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesManagerNewRuleForm_RulesVisibilityProperty" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.RulesVisibilityProperty">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.RulesVisibilityProperty.html">RulesVisibilityProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.RulesVisibility.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_RulesVisibility">RulesVisibility</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesManagerNewRuleForm_SuccessBackgroundColorProperty" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.SuccessBackgroundColorProperty">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.SuccessBackgroundColorProperty.html">SuccessBackgroundColorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.SuccessBackgroundColor.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_SuccessBackgroundColor">SuccessBackgroundColor</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesManagerNewRuleForm_SuccessForegroundColorProperty" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.SuccessForegroundColorProperty">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.SuccessForegroundColorProperty.html">SuccessForegroundColorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.SuccessForegroundColor.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_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_RulesManagerNewRuleForm_AttentionBackgroundColor" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.AttentionBackgroundColor">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.AttentionBackgroundColor.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_AttentionBackgroundColor">AttentionBackgroundColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value color for representing the attention state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesManagerNewRuleForm_CautionBackgroundColor" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.CautionBackgroundColor">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.CautionBackgroundColor.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_CautionBackgroundColor">CautionBackgroundColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value color for representing a caution state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesManagerNewRuleForm_CautionForegroundColor" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.CautionForegroundColor">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.CautionForegroundColor.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_CautionForegroundColor">CautionForegroundColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value color for representing a caution state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesManagerNewRuleForm_CriticalBackgroundColor" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.CriticalBackgroundColor">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.CriticalBackgroundColor.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_CriticalBackgroundColor">CriticalBackgroundColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value color for representing a critical state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesManagerNewRuleForm_CriticalForegroundColor" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.CriticalForegroundColor">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.CriticalForegroundColor.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_CriticalForegroundColor">CriticalForegroundColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value color for representing a critical state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesManagerNewRuleForm_DefaultBackgroundColor" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.DefaultBackgroundColor">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.DefaultBackgroundColor.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_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_RulesManagerNewRuleForm_Rule" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.Rule">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.Rule.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_Rule">Rule</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the editing rule.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesManagerNewRuleForm_RulesVisibility" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.RulesVisibility">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.RulesVisibility.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_RulesVisibility">RulesVisibility</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the visibility of the different rule types.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesManagerNewRuleForm_SuccessBackgroundColor" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.SuccessBackgroundColor">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.SuccessBackgroundColor.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_SuccessBackgroundColor">SuccessBackgroundColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value color for representing a success state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesManagerNewRuleForm_SuccessForegroundColor" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.SuccessForegroundColor">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.SuccessForegroundColor.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_SuccessForegroundColor">SuccessForegroundColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value color for representing a success 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_RulesManagerNewRuleForm_Dispose_System_Boolean_" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.Dispose(System.Boolean)">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.Dispose.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_RulesManager_RulesManagerNewRuleForm_OnApplyTemplate" data-uid="C1.WPF.RulesManager.RulesManagerNewRuleForm.OnApplyTemplate">
          <a class="xref" href="C1.WPF.RulesManager.RulesManagerNewRuleForm.OnApplyTemplate.html#C1_WPF_RulesManager_RulesManagerNewRuleForm_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
