[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateAmPmField

DateAmPmField Class

Represents DateAmPmField class which displays AM/PM string based on the value of GrapeCity.Windows.InputMan.GcDateTime.

Namespace: GrapeCity.Wpf.SpreadSheet.CellType.Editors
Assembly: GrapeCity.Wpf.SpreadSheet.CellType.dll
Syntax
public class DateAmPmField : DateInputField, IAnimatable, IFrameworkInputElement, IInputElement, IQueryAmbient, ISupportInitialize, ISpinable
Public Class DateAmPmField
    Inherits DateInputField
    Implements IAnimatable, IFrameworkInputElement, IInputElement, IQueryAmbient, ISupportInitialize, ISpinable
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

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
DateAmPmField()

Initializes a new instance of the DateAmPmField class.

DateAmPmField(AmPmPattern)

Initializes a new instance of the DateAmPmField class.

DateAmPmField(AmPmPattern, string, string)

Initializes a new instance of the DateAmPmField class.

Fields

Name Description
AMDesignatorProperty

Identifies the GrapeCity.Windows.InputMan.Fields.DateAmPmField.AMDesignator dependency property.

PMDesignatorProperty

Identifies the GrapeCity.Windows.InputMan.Fields.DateAmPmField.PMDesignator dependency property.

PatternProperty

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

TextProperty

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

Properties

Name Description
AMDesignator

Gets or sets the designator of AM. This is a dependency property.

PMDesignator

Gets or sets the designator of PM. This is a dependency property.

Pattern

Gets or sets a value indicating how to show AMDesignator and PMDesignator. This is a dependency property.

Text

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