Class DayCell
Represents a day cell of the CalendarEdit control.
Inherited Members
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.WPF.dll
Syntax
public class DayCell : Cell
Constructors
DayCell()
Declaration
public DayCell()
Fields
DateProperty
Identifies Date dependency property.
Declaration
public static readonly DependencyProperty DateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
HighlightEvent
Identifies Highlight routed event.
Declaration
public static readonly RoutedEvent HighlightEvent
Field Value
Type |
---|
System.Windows.RoutedEvent |
IsCurrentMonthProperty
Identifies IsCurrentMonth dependency property.
Declaration
public static readonly DependencyProperty IsCurrentMonthProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsDateProperty
Identifies IsDate dependency property.
Declaration
public static readonly DependencyProperty IsDateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsFirstDayofMonthProperty
Using a DependencyProperty as the backing store for IsFirstDayofMonth. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty IsFirstDayofMonthProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsTodayProperty
Identifies IsToday dependency property.
Declaration
public static readonly DependencyProperty IsTodayProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
Date
Gets or sets the cell date.
Declaration
public Date Date { get; set; }
Property Value
Type | Description |
---|---|
Date | Type: Date |
See Also
IsCurrentMonth
Gets or sets a value indicating whether the cell date belongs to the current month. This is a dependency property.
Declaration
public bool IsCurrentMonth { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean Default value is true. |
See Also
IsDate
Gets or sets a value indicating whether the cell date is equal to CalendarEdit date.
Declaration
public bool IsDate { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean Default value is false. |
See Also
IsFirstDayofMonth
Gets or sets a value indicating whether the cell date is equal to FirstDay of the Month
Declaration
public bool IsFirstDayofMonth { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean Default value is false. |
See Also
IsToday
Gets or sets a value indicating whether the cell date is equal to today date.
Declaration
public bool IsToday { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean Default value is false. |
See Also
Methods
FireHighlightEvent()
Raises the Highlight event.
Declaration
protected void FireHighlightEvent()
OnCreateAutomationPeer()
Creates an appropriate AutomationPeer for CalendarEdit
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type | Description |
---|---|
System.Windows.Automation.Peers.AutomationPeer | Automation peer of CalendarEdit |
SetStyle(Style)
Sets DayCell style property.
Declaration
protected void SetStyle(Style style)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Style | style | Style to be set. |
SetTemplate(DataTemplate)
Sets DayCell template property.
Declaration
protected void SetTemplate(DataTemplate template)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DataTemplate | template | Template to be set. |
UpdateCellTemplateAndSelector(DataTemplate, DataTemplateSelector)
Updates data template and data template selector of the cell.
Declaration
protected void UpdateCellTemplateAndSelector(DataTemplate template, DataTemplateSelector selector)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DataTemplate | template | Data template to be set to the cell. If it is null the local value of data template would be cleared. |
System.Windows.Controls.DataTemplateSelector | selector | Data template selector to be set to the cell. If it is null the local value would be cleared. |
Remarks
Both template and selector can not be set at the same time.
Events
Highlight
Bubbling routed event, fired when control needs to be highlighted.
Declaration
public event RoutedEventHandler Highlight
Event Type
Type |
---|
System.Windows.RoutedEventHandler |