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


In This Topic
    GcDropDownCalendar Class
    In This Topic
    Represents a GcDropDownCalendar control that enables a user to select a date by using a visual calendar display.
    Object Model
    GcDropDownCalendar Class
    Syntax
    'Declaration
     
    <DesignTimeVisibleAttribute(False)>
    <StyleTypedPropertyAttribute(Property="CalendarButtonStyle", StyleTargetType=GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarButton)>
    <TemplateVisualStateAttribute(Name="Disabled", GroupName="CommonStates")>
    <LicenseProviderAttribute(GrapeCity.Common.SpreadLicenseProvider)>
    <XmlLangPropertyAttribute("Language")>
    <UsableDuringInitializationAttribute(True)>
    <RuntimeNamePropertyAttribute("Name")>
    <UidPropertyAttribute("Uid")>
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public Class GcDropDownCalendar 
       Inherits ControlBase
    'Usage
     
    Dim instance As GcDropDownCalendar
    [DesignTimeVisible(false)]
    [StyleTypedProperty(Property="CalendarButtonStyle", StyleTargetType=GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarButton)]
    [TemplateVisualState(Name="Disabled", GroupName="CommonStates")]
    [LicenseProvider(GrapeCity.Common.SpreadLicenseProvider)]
    [XmlLangProperty("Language")]
    [UsableDuringInitialization(true)]
    [RuntimeNameProperty("Name")]
    [UidProperty("Uid")]
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public class GcDropDownCalendar : ControlBase 
    Remarks

    A GcDropDownCalendar control can be used on its own, or as a drop-down part of a GrapeCity.Windows.InputMan.GcDateTime control. For more information, see GrapeCity.Windows.InputMan.GcDateTime.

    The following table provides information about tasks that are typically associated with the GcDropDownCalendar.

    Task Implementation
    Have the GcDropDownCalendar display a month, an entire year, or a decade. Set the DisplayMode property to GrapeCity.Windows.InputMan.CalendarMode.Month, GrapeCity.Windows.InputMan.CalendarMode.Year, or GrapeCity.Windows.InputMan.CalendarMode.Decade.
    Specify whether the user can select a date, a range of dates, or multiple ranges of dates. Use the SelectionMode.
    Specify dates that cannot be selected. Use the BlackoutDates property.
    Specify the range of dates that the GcDropDownCalendar has. Use the MinDate and MaxDate properties.
    Specify whether the current date is highlighted. Use the IsTodayHighlighted property. By default, IsTodayHighlighted is true.

    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.

    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.ControlBase
                            GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar

    See Also