CalendarButton
The class of the calendar button.
Definition
Namespace:Telerik.Windows.Controls.Calendar
Assembly:Telerik.Windows.Controls.Input.dll
Syntax:
public class CalendarButton : ContentControl
Inheritance: objectCalendarButton
Constructors
Initializes a new instance of the CalendarButton class.
public CalendarButton()
Initializes a new instance of the CalendarButton class.
public CalendarButton(RadCalendar radCalendar)
The parent RadCalendar of the CalendarButton
Fields
ButtonTypeProperty
DependencyProperty
Identifies the ButtonType property.
public static readonly DependencyProperty ButtonTypeProperty
IsFromCurrentViewProperty
DependencyProperty
Identifies the IsFromCurrentView property.
public static readonly DependencyProperty IsFromCurrentViewProperty
IsInAnotherViewProperty
DependencyProperty
Identifies the IsInAnotherView property.
public static readonly DependencyProperty IsInAnotherViewProperty
IsSelectedProperty
DependencyProperty
Identifies the IsSelected property.
public static readonly DependencyProperty IsSelectedProperty
TextProperty
DependencyProperty
Identifies the Text property.
public static readonly DependencyProperty TextProperty
Properties
Gets or sets the type of the button. This is a dependency property.
public CalendarButtonType ButtonType { get; set; }
Gets or sets whether the button belongs to the current month/year/decade/century. This is a dependency property.
public bool IsFromCurrentView { get; set; }
Gets or sets whether a button with the same content exists in another view (in a multi-view calendar). This is a dependency property.
public bool IsInAnotherView { get; set; }
Gets or sets whether the button is selected. This is a dependency property.
public bool IsSelected { get; set; }
Methods
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .
public override void OnApplyTemplate()
OnCreateAutomationPeer()
AutomationPeer
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
The type-specific AutomationPeer implementation.
Called before the event occurs.
protected override void OnGotFocus(RoutedEventArgs e)
The data for the event.
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Called before the event occurs.
protected override void OnLostFocus(RoutedEventArgs e)
The data for the event.
Called before the event occurs.
protected override void OnMouseEnter(MouseEventArgs e)
The data for the event.
Called before the event occurs.
protected override void OnMouseLeave(MouseEventArgs e)
The data for the event.