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

CalendarView is the calendar items wrapper for the calendar.

Definition

Namespace:Telerik.Windows.Controls.Calendar

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

C#
public class CalendarView : HeaderedItemsControl

Inheritance: objectCalendarView

Constructors

Initializes a new instance of the CalendarView class.

C#
public CalendarView()

Initializes a new instance of the CalendarView class.

C#
public CalendarView(RadCalendar calendar)
Parameters:calendarRadCalendar

The owner calendar of the calendar view.

Fields

ColumnsProperty

DependencyProperty

Identifies the Columns property.

C#
public static readonly DependencyProperty ColumnsProperty

HeaderVisibilityProperty

DependencyProperty

Identifies the HeaderVisibility property.

C#
public static readonly DependencyProperty HeaderVisibilityProperty

HideColumnProperty

DependencyProperty

Identifies the HideColumn property.

C#
public static readonly DependencyProperty HideColumnProperty

HideRowProperty

DependencyProperty

Identifies the HideRow property.

C#
public static readonly DependencyProperty HideRowProperty

OrientationProperty

DependencyProperty

Identifies the Orientation property.

C#
public static readonly DependencyProperty OrientationProperty

RowsProperty

DependencyProperty

Identifies the Rows property.

C#
public static readonly DependencyProperty RowsProperty

Properties

Gets or sets the number of columns of the CalendarView. This is a dependency property.

C#
public int Columns { get; set; }

Gets or sets the visibility of the header of the Calendar view. This is a dependency property.

C#
public Visibility HeaderVisibility { get; set; }

Gets or sets whether first column will be displayed.

C#
public bool HideColumn { get; set; }

Gets or sets whether first row will be displayed.

C#
public bool HideRow { get; set; }

Orientation

Orientation

Gets or sets the orientation of the CalendarView. This is a dependency property.

C#
public Orientation Orientation { get; set; }

Gets or sets the number of rows of the CalendarView. This is a dependency property.

C#
public int Rows { get; set; }

Methods

When overridden in a derived class, undoes the effects of the method.

C#
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObject

The container element.

itemobject

The item.

Creates or identifies the element that is used to display the given item.

C#
protected override DependencyObject GetContainerForItemOverride()
Returns:

DependencyObject

The element that is used to display the given item.

Determines if the specified item is (or is eligible to be) its own container.

C#
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters:itemobject

The item to check.

Returns:

bool

True if the item is (or is eligible to be) its own container; otherwise, false.

When overridden in a derived class, is invoked whenever application code or internal processes 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.

Invoked whenever an unhandled event reaches this element in its route.

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

The RoutedEventArgs that contains the event data.

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 System.Windows.UIElement.LostMouseCapture event occurs to provide handling for the event in a derived class without attaching a delegate.

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

A System.Windows.Input.MouseEventArgs that contains the event data.

Called before the event occurs.

C#
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

The data for the event.

Prepares the specified element to display the specified item.

C#
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObject

Element used to display the specified item.

itemobject

Specified item.