A newer version of this page is available. Switch to the current version.

SchedulerViewBase.ChangeAppointmentSelection(Appointment) Method

Selects a single appointment.

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v19.1.dll

Declaration

public virtual void ChangeAppointmentSelection(
    Appointment apt
)

Parameters

Name Type Description
apt Appointment

An Appointment object to select.

Remarks

IMPORTANT

You are viewing documentation for the legacy WPF Scheduler control. If you’re starting a new project, we strongly recommend that you use a new control declared in the DevExpress.Xpf.Scheduling namespace. If you decide to upgrade an existing project in order to switch to the updated scheduler control, see the Migration Guidelines document.

The ChangeAppointmentSelection method can be used to make a specific appointment the only selected appointment within the View (that is the SchedulerControl.SelectedAppointments collection will contain only the specified appointment after calling this method).

The values of the SchedulerViewBase.SelectedInterval, SchedulerControl.SelectedInterval and SchedulerControl.SelectedResource properties are changed based on the newly selected appointment’s settings.

Calling the ChangeAppointmentSelection method results in the SchedulerControl.SelectionChanged event being invoked.

See Also