[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateEraField

DateEraField Class

Represents DateEraField class which displays era for GrapeCity.Windows.InputMan.GcDateTime.

Namespace: GrapeCity.Wpf.SpreadSheet.CellType.Editors
Assembly: GrapeCity.Wpf.SpreadSheet.CellType.dll
Syntax
[TemplatePart(Name = "PART_ContentRoot", Type = typeof(Grid))]
public class DateEraField : DateInputField, IAnimatable, IFrameworkInputElement, IInputElement, IQueryAmbient, ISupportInitialize, ISpinable, IDropDown
<TemplatePart(Name:="PART_ContentRoot", Type:=GetType(Grid))>
Public Class DateEraField
    Inherits DateInputField
    Implements IAnimatable, IFrameworkInputElement, IInputElement, IQueryAmbient, ISupportInitialize, ISpinable, IDropDown
Remarks

Supported VisualState list:

VisualStateGroup Name

VisualState Name

Description

CommonStates

Normal

Represents the visual appearance when control is in normal state.

CommonStates

Disabled

Represents the visual appearance when IsEnabled is false.

CommonStates

MouseOver

Represents the visual appearance when IsMouseOver is true.

ActiveStates

ActiveDropDown

Represents the visual appearance when IsActive and IsDropDownOpen is true.

ActiveStates

Active

Represents the visual appearance when IsActive is true.

ActiveStates

Inactive

Represents the visual appearance when IsActive is false.

InputStates

Full

Represents the visual appearance when IsFull is true.

InputStates

Completed

Represents the visual appearance when IsCompleted is true.

InputStates

Empty

Represents the visual appearance when IsEmpty is true.

InputStates

Part

Represents the visual appearance when IsFull, IsCompleted and IsEmpty all are false.

ValidationStates

Valid

Represents the visual appearance when System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject) returns false.

ValidationStates

InvalidFocused

Represents the visual appearance when System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject) returns true and IsKeyboardFocused is true.

ValidationStates

InvalidUnfocused

Represents the visual appearance when System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject) returns true and IsKeyboardFocused is false.

Constructors

Name Description
DateEraField()

Initializes a new instance of the DateEraField class.

DateEraField(EraPattern)

Initializes a new instance of the DateEraField class.

Fields

Name Description
AllowDropDownOpenProperty

Identifies the GrapeCity.Windows.InputMan.Fields.DateEraField.AllowDropDownOpen dependency property.

AutoOpenDropDownProperty

Identifies the GrapeCity.Windows.InputMan.Fields.DateEraField.AutoOpenDropDown dependency property.

IsDropDownOpenProperty

Identifies the GrapeCity.Windows.InputMan.Fields.DateEraField.IsDropDownOpen dependency property.

PatternProperty

Identifies the GrapeCity.Windows.InputMan.Fields.DateEraField.Pattern dependency property.

TextProperty

Identifies the GrapeCity.Windows.InputMan.Fields.DateEraField.Text dependency property.

Properties

Name Description
AllowDropDownOpen

Gets or sets a bool value indicates whether the dropdown function is active. This is a dependency property.

AutoOpenDropDown

Gets or sets a bool value which indicates whether auto drop down when focus come to this field. This is a dependency property.

IsDropDownOpen

Gets or sets a bool value indicates whether the dropdown window is showing. This is a dependency property.

Pattern

Gets or sets era pattern for the field. This is a dependency property.

Text

Gets or sets the text of the field. This is a dependency property.

Methods

Name Description
OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().