MindFusion.Scheduling for Silverlight Programmer's Guide
Calendar Members
Constructors Fields Properties Methods Events
 


The Calendar control serves as a view in document-view architecture, where the document is implemented by the Schedule class. The Calendar provides several schedule related views, such as SingleMonth, List, Timetable, that present the scheduled events in different styles and layouts.

The following tables list the members exposed by the Calendar type.

 Public Constructors

  Name Description

Calendar

Overloaded. Initializes a new instance of the Calendar class.

 Public Fields

  Name Description

CurrentViewProperty

Identifies the CurrentView dependency property.

DelayScrollProperty

Identifies the DelayScroll dependency property.

DelayScrollToolTipFormatProperty

Identifies the DelayScrollToolTipFormat dependency property.

GroupTypeProperty

Identifies the GroupType dependency property.

ItemChangeReferenceKeyProperty

Identifies the ItemChangeReferenceKey dependency property.

ItemContactsProperty

Identifies the ItemContacts dependency property.

ItemLocationsProperty

Identifies the ItemLocations dependency property.

ItemResourcesProperty

Identifies the ItemResources dependency property.

ItemSettingsProperty

Identifies the ItemSettings dependency property.

ItemTasksProperty

Identifies the ItemTasks dependency property.

KeepItemOrderProperty

Identifies the KeepItemOrder dependency property.

ListViewSettingsProperty

Identifies the ListViewSettings dependency property.

MonthRangeSettingsProperty

Identifies the MonthRangeSettings dependency property.

MonthSettingsProperty

Identifies the MonthSettings dependency property.

RescheduleRecurrenceKeyProperty

Identifies the RescheduleRecurrenceKey dependency property.

SelectionProperty

Identifies the Selection dependency property.

SelectionToolTipFormatProperty

Identifies the SelectionToolTipFormat dependency property.

ShowSelectionToolTipsProperty

Identifies the ShowSelectionToolTips dependency property.

ThemeProperty

Identifies the Theme dependency property.

TimetableSettingsProperty

Identifies the TimetableSettings dependency property.

WeekRangeSettingsProperty

Identifies the WeekRangeSettings dependency property.

 Public Properties

  Name Description

AllowAutoScroll

Gets or sets a value indicating whether the control scrolls automatically its contents when users drag items near the edge of the client rectangle. This is a dependency property.

AllowInplaceCreate

Gets or sets a value indicating whether users are allowed to create items interactively. This is a dependency property

AllowInplaceEdit

Gets or sets a value indicating whether users are allowed to edit items interactively. This is a dependency property.

ButtonOffset

Gets or set the margin of the navigation buttons. This is a dependency property.

ContactNameFormat

Gets or sets how to format and display contact names in the timetable header. This is a dependency property.

Culture

Gets or sets the CultureInfo object used to format and display time information in the calendar.

CurrentView

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

Date

Gets or sets the date currently displayed in the calendar. This is a dependency property.

DateTimeFormat

Gets or sets the DateTimeFormatInfo object that specifies how to format and display all dates within the calendar.

DelayInplaceEdit

Gets or sets a value indicating whether the in-place editing of an item is delayed for a second when the item is clicked. This is a dependency property.

DelayScroll

Gets or sets a value indicating whether interacting with the scrollbars will not have an effect until the interaction is over. During interaction a tooltip is displayed to indicate the expected scroll position. This is a dependency property.

DelayScrollToolTipFormat

Gets or sets the format of a tooltip displayed when scrolling and DelayScroll set to true. This is a dependency property.

DisableReminders

Gets or sets a value indicating whether to completely disable reminders in the whole schedule. This is a dependency property.

EnableDragCreate

Gets or sets a value indicating whether items are created merely by dragging in the control. This is a dependency property.

EndDate

Gets or sets the last date displayed in the calendar. This is a dependency property.

FirstWeekendDay

Gets or sets the first weekend day in the calendar. This is a dependency property.

GroupType

Gets or sets the grouping criteria for the Timetable, WeekRange, List and Resource views. This is a dependency property.

HorizontalScrollBarVisibility

Gets or sets a value that indicates whether a vertical System.Windows.Controls.Primitives.ScrollBar should be displayed. This is a dependency property.

HScrollPos

Gets or sets the current horizontal scroll position. This is a dependency property.

InteractiveItemType

Gets or sets the type of an Item-derived class whose instance should be created when a user starts typing while the calendar control has the keyboard focus.

ItemChangeReferenceKey

Gets or sets the modifier key, which lets users drag items between different contacts, resources, locations or tasks in a grouped view. This is a dependency property.

ItemCloneKey

Gets or sets the modifier key, which when pressed while dragging an item, will cause this item to be cloned and the clone to be dragged instead.

ItemContacts

Gets the contacts whose schedule to display when GroupType is set to GroupByContacts.

ItemLocations

Gets the locations whose schedule to display in the timetable when GroupType is set to GroupByLocations.

ItemResources

Gets the resources whose schedule to display in the control when GroupType is set to GroupByResources.

ItemSelection

Gets a list of all selected items.

ItemSettings

Gets the ItemSettings object used to customize the visualization of schedule items in all calendar views.

ItemTasks

Gets the tasks whose schedule to display in the control when GroupType is set to GroupByTasks.

KeepItemOrder

Gets or sets a value indicating whether to attempt to prioritize the newly created items during collision processing. This is a dependency property.

LicenseKey

Gets or sets the license key of the control.

ListViewSettings

Gets the ListViewSettings object used to customize the visualization of the List view.

MonthRangeSettings

Gets the MonthRangeSettings object used to customize the visualization of a month range in the MonthRange view.

MonthSettings

Gets the MonthSettings object used to customize the visualization of months in the MonthRange and SingleMonth views.

RemindersCheckInterval

Gets or sets the interval between reminder checks, expressed in seconds. This is a dependency property.

RescheduleRecurrenceKey

Gets or sets the modifier key, which when pressed allows users to interactively reschedule recurrent items.

ResourceViewSettings

Gets or sets the ResourceViewSettings object used to customize the Resource view.

RootVisual

Gets the root visual element for the control.

Schedule

Gets or sets the schedule whose information should be displayed inside the calendar control. This is a dependency property.

Selection

Gets a Selection object representing the current selection in the calendar.

SelectionToolTipFormat

Gets or sets the format of a selection tooltip. This is a dependency property.

ShowSelectionToolTips

Gets or sets a value indicating whether selection ranges in certain views provide tooltips when hovered with the mouse. This is a dependency property.

Theme

Gets or sets the theme applied to the calendar control UI elements. This is a dependency property.

TimetableSettings

Gets the TimetableSettings object used to customize the visualization of days and hours in Timetable view.

VerticalScrollBarVisibility

Gets or sets a value that indicates whether a vertical System.Windows.Controls.Primitives.ScrollBar should be displayed. This is a dependency property.

VScrollPos

Gets or sets the current vertical scroll position. This is a dependency property.

WeekRangeSettings

Gets the WeekRangeSettings object used to customize the visualization of weeks in a WeekRange view.

 Public Methods

  Name Description

BeginInit

Implements the ISupportInitialize.BeginInit method. Call this method before making several consecutive changes to the control to suppress internal updates, but don't forget to invoke EndInit at the end.

CollapseResourceRow

Collapses the row associated with the specified Contact, Location, Task or Resource in a Resource view. If there is no such row or the current view is not ResourceView, nothing happens.

CreateImage

Creates a WYSIWYG image from the calendar.

EndInit

Implements the ISupportInitialize.EndInit method. Call this method to signal that object initialization started with BeginInit is complete.

EnsureVisible

Overloaded. Ensures that a specific date or item is visible within the control, scrolling the contents of the control if necessary.

ExpandResourceRow

Expands the row associated with the specified Contact, Location, Task or Resource in a Resource view. If there is no such row or the current view is not ResourceView, nothing happens.

GetDateAt

Overloaded. Returns the date of the calendar cell located at the specified coordinates.

GetItemAt

Overloaded. Gets the item displayed at a specified coordinates.

GetItemListLane

Gets the index of the lane of the specified item within a List view whose FreeDrag property is enabled.

GetItemStyle

Retrieves the CalendarStyle previously associated with the normal state of the specified item.

GetItemTooltip

Retrieves the string tooltip previously associated with the item.

GetPointedItemStyle

Retrieves the CalendarStyle previously associated with the pointed state of the specified item.

GetPointedSelectedItemStyle

Retrieves the CalendarStyle previously associated with the pointed and selected state of the specified item.

GetResourceAt

Overloaded. Gets the Resource object whose schedule is displayed at a specified coordinates.

GetSelectedItemStyle

Retrieves the CalendarStyle previously associated with the selected state of the specified item.

IsResourceRowExpanded

Checks whether the row associated with the specified Contact, Location, Task or Resource in a Resource view is expanded.

LoadFrom

Overloaded. Loads schedule data from a file or a stream.

ResetDrag

If there is a mouse drag operation in progress, it is canceled.

SaveTo

Overloaded. Saves the underlying schedule to a file or a stream.

SetItemListLane

Sets the lane index for the specified item within a List view whose FreeDrag property is enabled.

SetItemStyle

Associates a new CalendarStyle with the specified item, which will be used when the item is in a normal state.

SetItemTooltip

Associates a new string tooltip with the specified item.

SetPointedItemStyle

Associates a new CalendarStyle with the specified item, which will be used when the item is pointed with the mouse.

SetPointedSelectedItemStyle

Associates a new CalendarStyle with the specified item, which will be used when the item is pointed and selected with the mouse.

SetSelectedItemStyle

Associates a new CalendarStyle with the specified item, which will be used when the item is selected.

 Protected Methods

  Name Description

MeasureOverride

Control.MeasureOverride override.

OnCellPresenterCreated

Raises the CellPresenterCreated event.

OnCellPresenterCreating

Raises the CellPresenterCreating event.

OnDateClick

Raises the DateClick event.

OnFilterItem

Raises the FilterItem event.

OnHiddenItemClick

Raises the HiddenItemClick event.

OnHScroll

Raises the HScroll event.

OnItemClick

Raises the ItemClick event.

OnItemCloned

Raises the ItemCloned event.

OnItemCloning

Raises the ItemCloning event.

OnItemCreated

Raises the ItemCreated event.

OnItemCreating

Raises the ItemCreating event.

OnItemCreationCanceled

Raises the ItemCreationCanceled event.

OnItemDeleted

Raises the ItemDeleted event.

OnItemDeleting

Raises the ItemDeleting event.

OnItemDeselecting

Raises the ItemDeselecting event.

OnItemInplaceEdited

Raises the ItemInplaceEdited event.

OnItemInplaceEditEnding

Raises the ItemInplaceEditEnding event.

OnItemInplaceEditStarting

Raises the ItemInplaceEditStarting event.

OnItemListLaneChanged

Raises the ItemListLaneChanged event.

OnItemModificationCanceled

Raises the ItemModificationCanceled event.

OnItemModified

Raises the ItemModified event.

OnItemModifying

Raises the ItemModifying event.

OnItemPresenterCreated

Raises the ItemPresenterCreated event.

OnItemSelecting

Raises the ItemSelecting event.

OnItemSelectionChanged

Raises the ItemSelectionChanged event.

OnItemSelectionComplete

Raises the ItemSelectionComplete event.

OnItemStartModifying

Raises the ItemStartModifying event.

OnKeyDown

Control.OnKeyDown override.

OnListViewHeaderClick

Raises the ListViewHeaderClick event.

OnManipulationCompleted

Control.OnManipulationCompleted override.

OnManipulationDelta

Control.OnManipulationDelta override.

OnManipulationStarted

Control.OnManipulationStarted override.

OnMonthHeaderClick

Raises the MonthHeaderClick event.

OnMonthRangeHeaderClick

Raises the MonthRangeHeaderClick event.

OnMonthWeekHeaderClick

Raises the MonthWeekHeaderClick event.

OnQueryHeaderText

Raises the QueryHeaderText event.

OnRecurringItemDeleting

Raises the RecurringItemDeleting event.

OnResourceViewBottomTimelineClick

Raises the ResourceViewBottomTimelineClick event.

OnResourceViewMiddleTimelineClick

Raises the ResourceViewMiddleTimelineClick event.

OnResourceViewTopTimelineClick

Raises the ResourceViewTopTimelineClick event.

OnScroll

Raises the Scroll event.

OnTapAndHoldCellConfirm

Raises the TapAndHoldCellConfirm event.

OnTapAndHoldItemConfirm

Raises the TapAndHoldItemConfirm event.

OnTimetableColumnHeaderClick

Raises the TimetableColumnHeaderClick event.

OnVisibleDateChanged

Raises the VisibleDateChanged event.

OnVScroll

Raises the VScroll event.

OnWeekRangeHeaderClick

Raises the WeekRangeHeaderClick event.

 Public Events

  Name Description

CellPresenterCreated

Raised when the CellPresenter control that will visualize specific view cell is created.

CellPresenterCreating

Raised when the CellPresenter control that will visualize specific view cell is being instantiated.

DateClick

Raised when the user clicks a date cell in the calendar.

FilterItem

Raised to allow filtering specific items from the view.

HiddenItemClick

Raised when a hidden items cue icon is clicked.

HScroll

Raised when the control has been scrolled horizontally.

ItemClick

Raised when the user clicks a schedule item.

ItemCloned

Raised when the user has cloned an item interactively.

ItemCloning

Raised when the user is about to clone an item interactively.

ItemCreated

Raised when a schedule item is created by the user.

ItemCreating

Raised when the user is about to create a new schedule item.

ItemCreationCanceled

Raised when an interactive item creation is canceled by the user.

ItemDeleted

Raised when the user deletes a schedule item.

ItemDeleting

Raised when the user is about to delete a schedule item.

ItemDeselecting

Raised when an item is about to be deselected.

ItemInplaceEdited

Raised when item's text is in-place edited.

ItemInplaceEditEnding

Raised when in-place editing of item's text is about to be accepted.

ItemInplaceEditStarting

Raised when in-place editing of item's text is about to begin.

ItemListLaneChanged

Raised when the lane index of an item within a List view has changed.

ItemModificationCanceled

Raised when an item modification is canceled by the user. This event is also raised upon completion of interaction which was previously canceled programmatically through the ItemModifying event.

ItemModified

Raised when a schedule item is moved or resized by the user.

ItemModifying

Raised when the user moves or resizes a schedule item, which would change the item's scheduled start or end date and time.

ItemPresenterCreated

Raised when the ItemPresenter Control that will visualise specific item is created.

ItemSelecting

Raised when an item is about to be selected.

ItemSelectionChanged

Raised when an item is selected or deselected.

ItemSelectionComplete

Raised when an item is selected or deselected.

ItemStartModifying

Raised when the user is about to move or resize an item.

ListViewHeaderClick

Raised when the header of a List view is clicked.

MonthHeaderClick

Raised when the header of a Month view is clicked.

MonthRangeHeaderClick

Raised when the header of an MonthRange view is clicked.

MonthWeekHeaderClick

Raised when a cell in the week header of a Month view is clicked.

QueryHeaderText

Raised when rendering various header texts to enable customization.

RecurringItemDeleting

Raised when the user is about to delete a recurring item.

ResourceViewBottomTimelineClick

Raised when the bottom timeline of a Resource view is clicked.

ResourceViewMiddleTimelineClick

Raised when the middle timeline of a Resource view is clicked.

ResourceViewTopTimelineClick

Raised when the top timeline of a Resource view is clicked.

Scroll

Raised when the value of a scrollbar has changed.

TapAndHoldCellConfirm

Raised when the user taps and hold on a cell to allow the application to cancel the in-place item creation.

TapAndHoldItemConfirm

Raised when the user taps and hold on an item to allow the application to cancel the in-place item modification.

TimetableColumnHeaderClick

Raised when the header of a Timetable column is clicked.

VisibleDateChanged

Raised when the user selects another date using the month or year navigation controls on the calendar header area.

VScroll

Raised when the control has been scrolled vertically.

WeekRangeHeaderClick

Raised when the header of a WeekRange view is clicked.

 See Also

Calendar Class
MindFusion.Scheduling.Silverlight Namespace