# C1.WPF.Input.C1ValidationDecorator

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Input_C1ValidationDecorator" data-uid="C1.WPF.Input.C1ValidationDecorator" class="text-break">C1ValidationDecorator Class
</h1>
  <div class="markdown level0 summary"><p>Displays binding validation errors.</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">C1ValidationDecorator</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Input.html">C1.WPF.Input</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Input.dll</h6>
  <h5 id="C1_WPF_Input_C1ValidationDecorator_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplateVisualState(Name = &quot;ValidState&quot;, GroupName = &quot;ValidationStateStates&quot;)]
[TemplateVisualState(Name = &quot;InvalidFocusedState&quot;, GroupName = &quot;ValidationStateStates&quot;)]
[TemplateVisualState(Name = &quot;InvalidUnfocusedState&quot;, GroupName = &quot;ValidationStateStates&quot;)]
public class C1ValidationDecorator : C1View</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplateVisualState(Name:=&quot;ValidState&quot;, GroupName:=&quot;ValidationStateStates&quot;)&gt;
&lt;TemplateVisualState(Name:=&quot;InvalidFocusedState&quot;, GroupName:=&quot;ValidationStateStates&quot;)&gt;
&lt;TemplateVisualState(Name:=&quot;InvalidUnfocusedState&quot;, GroupName:=&quot;ValidationStateStates&quot;)&gt;
Public Class C1ValidationDecorator
    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_Input_C1ValidationDecorator__ctor" data-uid="C1.WPF.Input.C1ValidationDecorator.#ctor">
          <a class="xref" href="C1.WPF.Input.C1ValidationDecorator.-ctor.html#C1_WPF_Input_C1ValidationDecorator__ctor">C1ValidationDecorator()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.Input.C1ValidationDecorator.html">C1ValidationDecorator</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_Input_C1ValidationDecorator_ErrorsProperty" data-uid="C1.WPF.Input.C1ValidationDecorator.ErrorsProperty">
          <a class="xref" href="C1.WPF.Input.C1ValidationDecorator.ErrorsProperty.html">ErrorsProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Input.C1ValidationDecorator.Errors.html#C1_WPF_Input_C1ValidationDecorator_Errors">Errors</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1ValidationDecorator_TargetProperty" data-uid="C1.WPF.Input.C1ValidationDecorator.TargetProperty">
          <a class="xref" href="C1.WPF.Input.C1ValidationDecorator.TargetProperty.html">TargetProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Input.C1ValidationDecorator.Target.html#C1_WPF_Input_C1ValidationDecorator_Target">Target</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1ValidationDecorator_ValidationStateProperty" data-uid="C1.WPF.Input.C1ValidationDecorator.ValidationStateProperty">
          <a class="xref" href="C1.WPF.Input.C1ValidationDecorator.ValidationStateProperty.html">ValidationStateProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Input.C1ValidationDecorator.ValidationState.html#C1_WPF_Input_C1ValidationDecorator_ValidationState">ValidationState</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_Input_C1ValidationDecorator_Errors" data-uid="C1.WPF.Input.C1ValidationDecorator.Errors">
          <a class="xref" href="C1.WPF.Input.C1ValidationDecorator.Errors.html#C1_WPF_Input_C1ValidationDecorator_Errors">Errors</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1ValidationDecorator_Target" data-uid="C1.WPF.Input.C1ValidationDecorator.Target">
          <a class="xref" href="C1.WPF.Input.C1ValidationDecorator.Target.html#C1_WPF_Input_C1ValidationDecorator_Target">Target</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the target of the validation.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1ValidationDecorator_ValidationState" data-uid="C1.WPF.Input.C1ValidationDecorator.ValidationState">
          <a class="xref" href="C1.WPF.Input.C1ValidationDecorator.ValidationState.html#C1_WPF_Input_C1ValidationDecorator_ValidationState">ValidationState</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.WPF.Input.ValidationState.html">ValidationState</a>.</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_Input_C1ValidationDecorator_ChangeVisualStateValidationState_System_Boolean_" data-uid="C1.WPF.Input.C1ValidationDecorator.ChangeVisualStateValidationState(System.Boolean)">
          <a class="xref" href="C1.WPF.Input.C1ValidationDecorator.ChangeVisualStateValidationState.html#C1_WPF_Input_C1ValidationDecorator_ChangeVisualStateValidationState_System_Boolean_">ChangeVisualStateValidationState(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Updates the current visual state of the ValidationState visual state group to match the object's properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1ValidationDecorator_Dispose_System_Boolean_" data-uid="C1.WPF.Input.C1ValidationDecorator.Dispose(System.Boolean)">
          <a class="xref" href="C1.WPF.Input.C1ValidationDecorator.Dispose.html#C1_WPF_Input_C1ValidationDecorator_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1ValidationDecorator_OnApplyTemplate" data-uid="C1.WPF.Input.C1ValidationDecorator.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Input.C1ValidationDecorator.OnApplyTemplate.html#C1_WPF_Input_C1ValidationDecorator_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
