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


In This Topic
    GcDateTime Class
    In This Topic
    Represents a control which provides you more powerful editing and display capability for DateTime type value.
    Object Model
    GcDateTime Class
    Syntax
    'Declaration
     
    <DesignTimeVisibleAttribute(False)>
    <StyleTypedPropertyAttribute(Property="DropDownButtonStyle", StyleTargetType=GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownButton)>
    <TemplatePartAttribute(Name="PART_Popup", Type=GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownWindow)>
    <TemplateVisualStateAttribute(Name="ActiveDropDown", GroupName="ActiveStates")>
    <LicenseProviderAttribute(GrapeCity.Common.SpreadLicenseProvider)>
    <LocalizabilityAttribute(LocalizationCategory.Text)>
    <XmlLangPropertyAttribute("Language")>
    <UsableDuringInitializationAttribute(True)>
    <RuntimeNamePropertyAttribute("Name")>
    <UidPropertyAttribute("Uid")>
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public Class GcDateTime 
       Inherits FieldsEditorControl
    'Usage
     
    Dim instance As GcDateTime
    [DesignTimeVisible(false)]
    [StyleTypedProperty(Property="DropDownButtonStyle", StyleTargetType=GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownButton)]
    [TemplatePart(Name="PART_Popup", Type=GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownWindow)]
    [TemplateVisualState(Name="ActiveDropDown", GroupName="ActiveStates")]
    [LicenseProvider(GrapeCity.Common.SpreadLicenseProvider)]
    [Localizability(LocalizationCategory.Text)]
    [XmlLangProperty("Language")]
    [UsableDuringInitialization(true)]
    [RuntimeNameProperty("Name")]
    [UidProperty("Uid")]
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public class GcDateTime : FieldsEditorControl 
    Remarks

    The GcDateTime control allows you to design a functional date-time input interface quickly and efficiently.

    Users can type a date time directly into a text field, which sets the Text and Value property. Also user can select a date from dropdown calendar and it will be set to Text and Value property. When user change the Fields in GcDateTime's FieldSet, it will represent different display text to the same value.

    Users can change the display format to represent different content from fields when control lost keyboard focus. It will affect GcDateTime's DisplayText property.

    Users can select a DateTime from dropdown calendar. The dropdown calendar can also be set through DropDownCalendarStyle.

    Supported System.Windows.VisualState list:

    l

    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

    ReadOnly

    Represents the visual appearance when IsReadOnly is true.

    CommonStates

    MouseOver

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

    InputStates

    Completed

    Represents the visual appearance when FieldsEditorControl.IsCompleted is true.

    InputStates

    Empty

    Represents the visual appearance when FieldsEditorControl.IsEmpty is true.

    InputStates

    Part

    Represents the visual appearance when FieldsEditorControl.IsFull, FieldsEditorControl.IsCompleted and FieldsEditorControl.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 control has focus.

    ValidationStates

    InvalidUnfocused

    Represents the visual appearance when System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject) returns true and control has no focus.

    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.ControlBase
                            GrapeCity.Wpf.SpreadSheet.CellType.Editors.EditBase
                               GrapeCity.Wpf.SpreadSheet.CellType.Editors.FieldsEditorControl
                                  GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime

    See Also