# GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField" class="text-break">DateEraField Class
</h1>
  <div class="markdown level0 summary"><p>Represents <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.html">DateEraField</a> class which displays era for GrapeCity.Windows.InputMan.GcDateTime.</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="https://learn.microsoft.com/dotnet/api/system.windows.media.visual">Visual</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control">Control</a></div>
    <div class="level5"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Field.html">Field</a></div>
    <div class="level6"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateField.html">DateField</a></div>
    <div class="level7"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateInputField.html">DateInputField</a></div>
    <div class="level8"><span class="xref">DateEraField</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.animation.ianimatable">IAnimatable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iframeworkinputelement">IFrameworkInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iinputelement">IInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iqueryambient">IQueryAmbient</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
    <div><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ISpinable.html">ISpinable</a></div>
    <div><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.IDropDown.html">IDropDown</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.html">GrapeCity.Wpf.SpreadSheet.CellType.Editors</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Wpf.SpreadSheet.CellType.dll</h6>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;PART_ContentRoot&quot;, Type = typeof(Grid))]
public class DateEraField : DateInputField, IAnimatable, IFrameworkInputElement, IInputElement, IQueryAmbient, ISupportInitialize, ISpinable, IDropDown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;PART_ContentRoot&quot;, Type:=GetType(Grid))&gt;
Public Class DateEraField
    Inherits DateInputField
    Implements IAnimatable, IFrameworkInputElement, IInputElement, IQueryAmbient, ISupportInitialize, ISpinable, IDropDown</code></pre>
  </div>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>
  <b>Supported <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.visualstate">VisualState</a> list:</b>
  <table width="50%" cellspacing="2" cellpadding="5" frame="lhs">
    <tr>
      <th>
        <p>VisualStateGroup Name</p>
      </th>
      <th>
        <p>VisualState Name</p>
      </th>
      <th>
        <p>Description</p>
      </th>
    </tr>
    <tr>
      <td>
        <p>CommonStates</p>
      </td>
      <td>
        <p>Normal</p>
      </td>
      <td>
        <p>Represents the visual appearance when control is in normal state.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>CommonStates</p>
      </td>
      <td>
        <p>Disabled</p>
      </td>
      <td>
        <p>Represents the visual appearance when <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement.isenabled">IsEnabled</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>CommonStates</p>
      </td>
      <td>
        <p>MouseOver</p>
      </td>
      <td>
        <p>Represents the visual appearance when <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement.ismouseover">IsMouseOver</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>ActiveStates</p>
      </td>
      <td>
        <p>ActiveDropDown</p>
      </td>
      <td>
        <p>Represents the visual appearance when <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Field.IsActive.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_Field_IsActive">IsActive</a> and <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.IsDropDownOpen.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField_IsDropDownOpen">IsDropDownOpen</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>ActiveStates</p>
      </td>
      <td>
        <p>Active</p>
      </td>
      <td>
        <p>Represents the visual appearance when <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Field.IsActive.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_Field_IsActive">IsActive</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>ActiveStates</p>
      </td>
      <td>
        <p>Inactive</p>
      </td>
      <td>
        <p>Represents the visual appearance when <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Field.IsActive.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_Field_IsActive">IsActive</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>InputStates</p>
      </td>
      <td>
        <p>Full</p>
      </td>
      <td>
        <p>Represents the visual appearance when <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Field.IsFull.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_Field_IsFull">IsFull</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>InputStates</p>
      </td>
      <td>
        <p>Completed</p>
      </td>
      <td>
        <p>Represents the visual appearance when <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Field.IsCompleted.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_Field_IsCompleted">IsCompleted</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>InputStates</p>
      </td>
      <td>
        <p>Empty</p>
      </td>
      <td>
        <p>Represents the visual appearance when <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Field.IsEmpty.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_Field_IsEmpty">IsEmpty</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>InputStates</p>
      </td>
      <td>
        <p>Part</p>
      </td>
      <td>
        <p>Represents the visual appearance when <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Field.IsFull.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_Field_IsFull">IsFull</a>, <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Field.IsCompleted.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_Field_IsCompleted">IsCompleted</a> and <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Field.IsEmpty.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_Field_IsEmpty">IsEmpty</a> all are <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>ValidationStates</p>
      </td>
      <td>
        <p>Valid</p>
      </td>
      <td>
        <p>Represents the visual appearance when <span class="xref">System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject)</span> returns <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>ValidationStates</p>
      </td>
      <td>
        <p>InvalidFocused</p>
      </td>
      <td>
        <p>Represents the visual appearance when <span class="xref">System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject)</span> returns <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> and <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement.iskeyboardfocused">IsKeyboardFocused</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.</p>
      </td>
    </tr>
    <tr>
      <td>
        <p>ValidationStates</p>
      </td>
      <td>
        <p>InvalidUnfocused</p>
      </td>
      <td>
        <p>Represents the visual appearance when <span class="xref">System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject)</span> returns <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> and <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement.iskeyboardfocused">IsKeyboardFocused</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
      </td>
    </tr>
  </table>

</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="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField__ctor" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.#ctor">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.-ctor.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField__ctor">DateEraField()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.html">DateEraField</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField__ctor_GrapeCity_Wpf_SpreadSheet_CellType_Editors_EraPattern_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.#ctor(GrapeCity.Wpf.SpreadSheet.CellType.Editors.EraPattern)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.-ctor.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField__ctor_GrapeCity_Wpf_SpreadSheet_CellType_Editors_EraPattern_">DateEraField(EraPattern)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.html">DateEraField</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="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField_AllowDropDownOpenProperty" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.AllowDropDownOpenProperty">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.AllowDropDownOpenProperty.html">AllowDropDownOpenProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the GrapeCity.Windows.InputMan.Fields.DateEraField.AllowDropDownOpen dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField_AutoOpenDropDownProperty" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.AutoOpenDropDownProperty">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.AutoOpenDropDownProperty.html">AutoOpenDropDownProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the GrapeCity.Windows.InputMan.Fields.DateEraField.AutoOpenDropDown dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField_IsDropDownOpenProperty" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.IsDropDownOpenProperty">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.IsDropDownOpenProperty.html">IsDropDownOpenProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the GrapeCity.Windows.InputMan.Fields.DateEraField.IsDropDownOpen dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField_PatternProperty" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.PatternProperty">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.PatternProperty.html">PatternProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the GrapeCity.Windows.InputMan.Fields.DateEraField.Pattern dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField_TextProperty" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.TextProperty">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.TextProperty.html">TextProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the GrapeCity.Windows.InputMan.Fields.DateEraField.Text 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="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField_AllowDropDownOpen" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.AllowDropDownOpen">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.AllowDropDownOpen.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField_AllowDropDownOpen">AllowDropDownOpen</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value indicates whether the dropdown function is active.
This is a dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField_AutoOpenDropDown" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.AutoOpenDropDown">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.AutoOpenDropDown.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField_AutoOpenDropDown">AutoOpenDropDown</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value which indicates whether auto drop down   when focus come to this field. This is a dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField_IsDropDownOpen" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.IsDropDownOpen">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.IsDropDownOpen.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField_IsDropDownOpen">IsDropDownOpen</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value indicates whether the dropdown window is showing. This is a dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField_Pattern" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.Pattern">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.Pattern.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField_Pattern">Pattern</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets era pattern for the field. This is a dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField_Text" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.Text">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.Text.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text of the field.
This is a dependency property.</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="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField_OnApplyTemplate" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.OnApplyTemplate">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField.OnApplyTemplate.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DateEraField_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>When overridden in a derived class, is invoked whenever application code
or internal processes call <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement.applytemplate">ApplyTemplate()</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
