[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateAmPmDisplayField

DateAmPmDisplayField Class

Represents DateAmPmDisplayField 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 DateAmPmDisplayField : DateInputDisplayField, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient
Public Class DateAmPmDisplayField
    Inherits DateInputDisplayField
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient
Remarks

DateAmPmDisplayField is a field that displays the AM/PM string when GcDateTime is not active.

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.

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

Initializes a new instance of the DateAmPmDisplayField class.

DateAmPmDisplayField(AmPmPattern)

Initializes a new instance of the DateAmPmDisplayField class.

DateAmPmDisplayField(AmPmPattern, string, string)

Initializes a new instance of the GrapeCity.Windows.InputMan.Fields.DateAmPmDisplayField class.

Fields

Name Description
AMDesignatorProperty

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

PMDesignatorProperty

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

PatternProperty

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

Properties

Name Description
AMDesignator

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

PMDesignator

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

Pattern

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