[]
Represents a CalendarItem control which currently displays a month, a year or a decade on a GrapeCity.Windows.InputMan.GcDropDownCalendar.
[TemplatePart(Name = "PART_MonthView", Type = typeof(Grid))]
[TemplatePart(Name = "PART_YearView", Type = typeof(Grid))]
[TemplateVisualState(Name = "Month", GroupName = "DisplayModeStates")]
[TemplateVisualState(Name = "Year", GroupName = "DisplayModeStates")]
[TemplateVisualState(Name = "Decade", GroupName = "DisplayModeStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
public class CalendarItem : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient
<TemplatePart(Name:="PART_MonthView", Type:=GetType(Grid))>
<TemplatePart(Name:="PART_YearView", Type:=GetType(Grid))>
<TemplateVisualState(Name:="Month", GroupName:="DisplayModeStates")>
<TemplateVisualState(Name:="Year", GroupName:="DisplayModeStates")>
<TemplateVisualState(Name:="Decade", GroupName:="DisplayModeStates")>
<TemplateVisualState(Name:="Disabled", GroupName:="CommonStates")>
<TemplateVisualState(Name:="Normal", GroupName:="CommonStates")>
Public Class CalendarItem
Inherits Control
Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient
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 VisualState list:
VisualStateGroup Name | VisualState Name | Description |
---|---|---|
CommonStates | Normal | Represents the visual appearance when control is in normal state. |
CommonStates | Disabled | |
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 |
---|---|
CalendarItem() |
Name | Description |
---|---|
HeaderInfoProperty | Identifies the HeaderInfo dependency property. |
InnerMarginProperty | Identifies the InnerMargin dependency property. |
Name | Description |
---|---|
HeaderInfo | Gets the GrapeCity.Windows.InputMan.Primitives.HeaderInfo which contains the advanced information of the CalendarItem represents. This is a dependency property. |
InnerMargin | Gets or sets the inner margin. |
Name | Description |
---|---|
OnApplyTemplate() | When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate(). |