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

Represents a behavior of the appointment selection in the RadScheduleView control.

Definition

Namespace:Telerik.Windows.Controls.ScheduleView

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

C#
public class AppointmentSelectionBehavior : Freezable

Inheritance: objectAppointmentSelectionBehavior

Constructors

C#
public AppointmentSelectionBehavior()

Properties

Gets or sets a value that indicates whether a RadScheduleView should keep the SelectedAppointment synchronized with the CurrentAppointment of the control's property.

C#
public bool IsSynchronizedWithCurrentItem { get; set; }

Methods

C#
protected override Freezable CreateInstanceCore()
Returns:

Freezable

C#
protected virtual IOccurrence GetItemToSelect(AppointmentSelectionState state, IOccurrence occurrence)
Parameters:stateAppointmentSelectionStateoccurrenceIOccurrenceReturns:

IOccurrence

Gets the appointments in current range.

C#
public IEnumerable<IOccurrence> GetNewAppointmentSelection(AppointmentSelectionState state, IOccurrence target, IDateSpan clickedRange)
Parameters:stateAppointmentSelectionState

The selection state.

targetIOccurrence

The targeted appointment.

clickedRangeIDateSpan

The time range in which the selection occurs.

Returns:

IEnumerable<IOccurrence>

List of selected occurrences.

C#
protected IOccurrenceIterationProvider GetOccurrenceIterationProvider(AppointmentSelectionState state)
Parameters:stateAppointmentSelectionStateReturns:

IOccurrenceIterationProvider

C#
protected virtual IEnumerable<IOccurrence> GetSelectedAppointments(AppointmentSelectionState state, IOccurrence target)
Parameters:stateAppointmentSelectionStatetargetIOccurrenceReturns:

IEnumerable<IOccurrence>

C#
protected virtual void UpdateCurrencyAndSelection(AppointmentSelectionState state, IEnumerable<IOccurrence> newSelection)
Parameters:stateAppointmentSelectionStatenewSelectionIEnumerable<IOccurrence>