New to Telerik UI for WPFStart a free 30-day trial

The class of the calendar button.

Definition

Namespace:Telerik.Windows.Controls.Calendar

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

C#
public class CalendarButton : ContentControl

Inheritance: objectCalendarButton

Constructors

Initializes a new instance of the CalendarButton class.

C#
public CalendarButton()

Initializes a new instance of the CalendarButton class.

C#
public CalendarButton(RadCalendar radCalendar)
Parameters:radCalendarRadCalendar

The parent RadCalendar of the CalendarButton

Fields

ButtonTypeProperty

DependencyProperty

Identifies the ButtonType property.

C#
public static readonly DependencyProperty ButtonTypeProperty

IsFromCurrentViewProperty

DependencyProperty

Identifies the IsFromCurrentView property.

C#
public static readonly DependencyProperty IsFromCurrentViewProperty

IsInAnotherViewProperty

DependencyProperty

Identifies the IsInAnotherView property.

C#
public static readonly DependencyProperty IsInAnotherViewProperty

IsSelectedProperty

DependencyProperty

Identifies the IsSelected property.

C#
public static readonly DependencyProperty IsSelectedProperty

TextProperty

DependencyProperty

Identifies the Text property.

C#
public static readonly DependencyProperty TextProperty

Properties

Gets or sets the type of the button. This is a dependency property.

C#
public CalendarButtonType ButtonType { get; set; }

Gets or sets whether the button belongs to the current month/year/decade/century. This is a dependency property.

C#
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.

C#
public bool IsInAnotherView { get; set; }

Gets or sets whether the button is selected. This is a dependency property.

C#
public bool IsSelected { get; set; }

Gets or sets the text displayed by the button. This is a dependency property.

C#
public string Text { get; set; }

Methods

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .

C#
public override void OnApplyTemplate()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

The type-specific AutomationPeer implementation.

Called before the event occurs.

C#
protected override void OnGotFocus(RoutedEventArgs e)
Parameters:eRoutedEventArgs

The data for the event.

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Called before the event occurs.

C#
protected override void OnLostFocus(RoutedEventArgs e)
Parameters:eRoutedEventArgs

The data for the event.

Called before the event occurs.

C#
protected override void OnMouseEnter(MouseEventArgs e)
Parameters:eMouseEventArgs

The data for the event.

Called before the event occurs.

C#
protected override void OnMouseLeave(MouseEventArgs e)
Parameters:eMouseEventArgs

The data for the event.