[]
Represents DateAmPmDisplayField class which displays AM/PM string based on the value of GrapeCity.Windows.InputMan.GcDateTime.
public class DateAmPmDisplayField : DateInputDisplayField, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient
Public Class DateAmPmDisplayField
Inherits DateInputDisplayField
Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient
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 | |
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. |
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. |
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. |
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. |