# C1.WPF.RulesManager.RulesEngineCustomRule

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_RulesManager_RulesEngineCustomRule" data-uid="C1.WPF.RulesManager.RulesEngineCustomRule" class="text-break">RulesEngineCustomRule Class
</h1>
  <div class="markdown level0 summary"><p>Rule that programmatically executes a function to create the style applied to the specified items.</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"><a class="xref" href="C1.WPF.RulesManager.RulesEngineRule.html">RulesEngineRule</a></div>
    <div class="level2"><span class="xref">RulesEngineCustomRule</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><span class="xref">IXmlSerializable</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_RulesEngineCustomRule_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RulesEngineCustomRule : RulesEngineRule, IXmlSerializable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class RulesEngineCustomRule
    Inherits RulesEngineRule
    Implements IXmlSerializable</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_RulesEngineCustomRule__ctor" data-uid="C1.WPF.RulesManager.RulesEngineCustomRule.#ctor">
          <a class="xref" href="C1.WPF.RulesManager.RulesEngineCustomRule.-ctor.html#C1_WPF_RulesManager_RulesEngineCustomRule__ctor">RulesEngineCustomRule()</a>
        </td>
        <td class="markdown level1 summary"></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_RulesEngineCustomRule_Func" data-uid="C1.WPF.RulesManager.RulesEngineCustomRule.Func">
          <a class="xref" href="C1.WPF.RulesManager.RulesEngineCustomRule.Func.html#C1_WPF_RulesManager_RulesEngineCustomRule_Func">Func</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the function that creates the style for the specified item.</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_RulesEngineCustomRule_GetStyle_C1_WPF_RulesManager_RulesEngineSource_System_Int32_System_String_" data-uid="C1.WPF.RulesManager.RulesEngineCustomRule.GetStyle(C1.WPF.RulesManager.RulesEngineSource,System.Int32,System.String)">
          <a class="xref" href="C1.WPF.RulesManager.RulesEngineCustomRule.GetStyle.html#C1_WPF_RulesManager_RulesEngineCustomRule_GetStyle_C1_WPF_RulesManager_RulesEngineSource_System_Int32_System_String_">GetStyle(RulesEngineSource, int, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the style for the specified <code class="paramref">source</code>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
