Class
CalendarButton

The class of the calendar button.

Definition

Namespace:Telerik.Windows.Controls.Calendar

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

cs-api-definition
public class CalendarButton : ContentControl

Inheritance: objectCalendarButton

Constructors

CalendarButton()

Initializes a new instance of the CalendarButton class.

Declaration

cs-api-definition
public CalendarButton()

CalendarButton(RadCalendar)

Initializes a new instance of the CalendarButton class.

Declaration

cs-api-definition
public CalendarButton(RadCalendar radCalendar)

Parameters

radCalendar

RadCalendar

The parent RadCalendar of the CalendarButton

Fields

ButtonTypeProperty

Identifies the ButtonType property.

Declaration

cs-api-definition
public static readonly DependencyProperty ButtonTypeProperty

Field Value

DependencyProperty

IsFromCurrentViewProperty

Identifies the IsFromCurrentView property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsFromCurrentViewProperty

Field Value

DependencyProperty

IsInAnotherViewProperty

Identifies the IsInAnotherView property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsInAnotherViewProperty

Field Value

DependencyProperty

IsSelectedProperty

Identifies the IsSelected property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsSelectedProperty

Field Value

DependencyProperty

TextProperty

Identifies the Text property.

Declaration

cs-api-definition
public static readonly DependencyProperty TextProperty

Field Value

DependencyProperty

Properties

ButtonType

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

Declaration

cs-api-definition
public CalendarButtonType ButtonType { get; set; }

Property Value

CalendarButtonType

IsFromCurrentView

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

Declaration

cs-api-definition
public bool IsFromCurrentView { get; set; }

Property Value

bool

IsInAnotherView

Gets or sets whether a button with the same content exists in another view (in a multi-view calendar). This is a dependency property.

Declaration

cs-api-definition
public bool IsInAnotherView { get; set; }

Property Value

bool

IsSelected

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

Declaration

cs-api-definition
public bool IsSelected { get; set; }

Property Value

bool

Text

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

Declaration

cs-api-definition
public string Text { get; set; }

Property Value

string

Methods

OnApplyTemplate()

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

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnGotFocus(RoutedEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnGotFocus(RoutedEventArgs e)

Parameters

e

RoutedEventArgs

The data for the event.

OnInitialized(EventArgs)

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

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

OnLostFocus(RoutedEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnLostFocus(RoutedEventArgs e)

Parameters

e

RoutedEventArgs

The data for the event.

OnMouseEnter(MouseEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnMouseEnter(MouseEventArgs e)

Parameters

e

MouseEventArgs

The data for the event.

OnMouseLeave(MouseEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnMouseLeave(MouseEventArgs e)

Parameters

e

MouseEventArgs

The data for the event.