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


In This Topic
    CalendarItem Class
    In This Topic
    Represents a CalendarItem control which currently displays a month, a year or a decade on a GrapeCity.Windows.InputMan.GcDropDownCalendar.
    Object Model
    CalendarItem Class
    Syntax
    'Declaration
     
    <DesignTimeVisibleAttribute(False)>
    <TemplatePartAttribute(Name="PART_MonthView", Type=System.Windows.Controls.Grid)>
    <TemplateVisualStateAttribute(Name="Month", GroupName="DisplayModeStates")>
    <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 CalendarItem 
       Inherits System.Windows.Controls.Control
    'Usage
     
    Dim instance As CalendarItem
    [DesignTimeVisible(false)]
    [TemplatePart(Name="PART_MonthView", Type=System.Windows.Controls.Grid)]
    [TemplateVisualState(Name="Month", GroupName="DisplayModeStates")]
    [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 CalendarItem : System.Windows.Controls.Control 
    Remarks
    The CalendarItem contains 3 buttons in heading ( a previous button, a next button, and a header button ), and it contains a month view for displaying a month, and a year view for displaying a year or a decade.

    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.CalendarItem

    See Also