Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / DateAmPmDisplayField Class
Members


In This Topic
    DateAmPmDisplayField Class
    In This Topic
    Represents DateAmPmDisplayField class which displays AM/PM string based on the value of GrapeCity.Windows.InputMan.GcDateTime.
    Object Model
    DateAmPmDisplayField Class
    Syntax
    'Declaration
     
    <DesignTimeVisibleAttribute(False)>
    <TemplatePartAttribute(Name="PART_ContentHost", Type=GrapeCity.Wpf.SpreadSheet.CellType.Editors.FieldContentPresenter)>
    <StyleTypedPropertyAttribute(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)>
    <XmlLangPropertyAttribute("Language")>
    <UsableDuringInitializationAttribute(True)>
    <RuntimeNamePropertyAttribute("Name")>
    <UidPropertyAttribute("Uid")>
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public Class DateAmPmDisplayField 
       Inherits DateInputDisplayField
    'Usage
     
    Dim instance As DateAmPmDisplayField
    [DesignTimeVisible(false)]
    [TemplatePart(Name="PART_ContentHost", Type=GrapeCity.Wpf.SpreadSheet.CellType.Editors.FieldContentPresenter)]
    [StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)]
    [XmlLangProperty("Language")]
    [UsableDuringInitialization(true)]
    [RuntimeNameProperty("Name")]
    [UidProperty("Uid")]
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public class DateAmPmDisplayField : DateInputDisplayField 
    Remarks
    DateAmPmDisplayField is a field that displays the AM/PM string when GcDateTime is not active.

    Supported System.Windows.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 System.Windows.UIElement.IsEnabled is false.

    CommonStates

    MouseOver

    Represents the visual appearance when System.Windows.UIElement.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 System.Windows.UIElement.IsKeyboardFocused is true.

    ValidationStates

    InvalidUnfocused

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

    Inheritance Hierarchy

    System.Object
       System.Windows.Threading.DispatcherObject
          System.Windows.DependencyObject
             System.Windows.Media.Visual
                System.Windows.UIElement
                   System.Windows.FrameworkElement
                      System.Windows.Controls.Control
                         GrapeCity.Wpf.SpreadSheet.CellType.Editors.DisplayField
                            GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateDisplayField
                               GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateInputDisplayField
                                  GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateAmPmDisplayField

    See Also