Class CalendarDayButton
Represents a button control used in Calendar Control, which reacts to the Click event.
Inheritance
Implements
Namespace: Syncfusion.Windows.Controls.Primitives
Assembly: Syncfusion.Shared.WPF.dll
Syntax
public sealed class CalendarDayButton : Button, IDisposable
Constructors
CalendarDayButton()
Represents the CalendarDayButton that is used in Calendar Control.
Declaration
public CalendarDayButton()
Fields
IsBlackedOutProperty
Dependency property field for IsBlackedOut property
Declaration
public static readonly DependencyProperty IsBlackedOutProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsHighlightedProperty
Dependency property field for IsHighlighted property
Declaration
public static readonly DependencyProperty IsHighlightedProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsInactiveProperty
Dependency property field for IsActive property
Declaration
public static readonly DependencyProperty IsInactiveProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsSelectedProperty
Dependency property field for IsSelected property
Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsTodayProperty
Dependency property field for IsToday property
Declaration
public static readonly DependencyProperty IsTodayProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
IsBlackedOut
True if the CalendarDayButton represents a blackout date
Declaration
public bool IsBlackedOut { get; }
Property Value
Type |
---|
System.Boolean |
IsHighlighted
True if the CalendarDayButton represents a highlighted date
Declaration
public bool IsHighlighted { get; }
Property Value
Type |
---|
System.Boolean |
IsInactive
True if the CalendarDayButton represents a day that falls in the currently displayed month
Declaration
public bool IsInactive { get; }
Property Value
Type |
---|
System.Boolean |
IsSelected
True if the CalendarDayButton is selected
Declaration
public bool IsSelected { get; }
Property Value
Type |
---|
System.Boolean |
IsToday
True if the CalendarDayButton represents today
Declaration
public bool IsToday { get; }
Property Value
Type |
---|
System.Boolean |
Methods
Dispose()
Helps to dispose the CalendarDayButton in Calendar control.
Declaration
public void Dispose()
OnApplyTemplate()
Apply a template to the button.
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Creates the automation peer for the CalendarDayButton.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type |
---|
System.Windows.Automation.Peers.AutomationPeer |
OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)
Declaration
protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyboardFocusChangedEventArgs | e |
OnLostKeyboardFocus(KeyboardFocusChangedEventArgs)
Declaration
protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyboardFocusChangedEventArgs | e |