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

The content that each calendar button is assigned.

Definition

Namespace:Telerik.Windows.Controls.Calendar

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

C#
public class CalendarButtonContent : INotifyPropertyChanged

Inheritance: objectCalendarButtonContent

Implements: INotifyPropertyChanged

Constructors

C#
public CalendarButtonContent()

Properties

Gets the type of the button.

C#
public CalendarButtonType ButtonType { get; }

Gets or sets date that the button displays.

C#
public DateTime Date { get; }

Gets or sets whether the date can be selected.

C#
public bool IsEnabled { get; set; }

Defines whether the element belongs to the current view (currently displayed month, year, decade or century).

C#
public bool IsFromCurrentView { get; set; }

Gets whether the button is initially visible.

C#
public bool IsInAnotherView { get; set; }

Gets whether the button is initially selected.

C#
public bool IsSelected { get; set; }

Gets or sets the text that gets displayed on the calendar.

C#
public string Text { get; set; }

Methods

Determines whether the specified object is equal to the current object.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

true if the specified object is equal to the current object; otherwise, false.

Overrides: object.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()

Overrides ToString to support proper display if set as Content on ContentPresenter with ContentTemplate = null.

C#
public override string ToString()
Returns:

string

Returns the value of the Text property.

Overrides: object.ToString()

Events

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged