Class CalendarButton
Represents a button control used in Calendar Control, which reacts to the Click event.
Inheritance
System.Object
CalendarButton
Implements
System.IDisposable
Namespace: Syncfusion.Windows.Controls.Primitives
Assembly: Syncfusion.Shared.WPF.dll
Syntax
public sealed class CalendarButton : Button, IDisposable
Constructors
CalendarButton()
Represents the CalendarButton that is used in Calendar Control.
Declaration
public CalendarButton()
Fields
HasSelectedDaysProperty
Dependency property field for HasSelectedDays property
Declaration
public static readonly DependencyProperty HasSelectedDaysProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsInactiveProperty
Dependency property field for IsInactive property
Declaration
public static readonly DependencyProperty IsInactiveProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
HasSelectedDays
True if the CalendarButton represents a date range containing the display date
Declaration
public bool HasSelectedDays { get; }
Property Value
Type |
---|
System.Boolean |
IsInactive
True if the CalendarButton represents a month that falls outside the current year or a year that falls outside the current decade
Declaration
public bool IsInactive { get; }
Property Value
Type |
---|
System.Boolean |
Methods
Dispose()
Helps to dispose the CalendarButton 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 DayButton.
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 |
Implements
System.IDisposable