Class
CalendarButtonContent

The content that each calendar button is assigned.

Definition

Namespace:Telerik.Windows.Controls.Calendar

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

cs-api-definition
public class CalendarButtonContent : INotifyPropertyChanged

Inheritance: objectCalendarButtonContent

Implements: INotifyPropertyChanged

Constructors

CalendarButtonContent()

Declaration

cs-api-definition
public CalendarButtonContent()

Properties

ButtonType

Gets the type of the button.

Declaration

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

Property Value

CalendarButtonType

Date

Gets or sets date that the button displays.

Declaration

cs-api-definition
public DateTime Date { get; }

Property Value

DateTime

IsEnabled

Gets or sets whether the date can be selected.

Declaration

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

Property Value

bool

IsFromCurrentView

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

Declaration

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

Property Value

bool

IsInAnotherView

Gets whether the button is initially visible.

Declaration

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

Property Value

bool

IsSelected

Gets whether the button is initially selected.

Declaration

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

Property Value

bool

Text

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

Declaration

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

Property Value

string

Methods

Equals(object)

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

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides object.GetHashCode()

ToString()

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

Declaration

cs-api-definition
public override string ToString()

Returns

string

Returns the value of the Text property.

Overrides object.ToString()

Events

PropertyChanged

Occurs when a property value changes.

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged