Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SchedulerControl.SelectedAppointments Property

Provides access to the selected appointments.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v24.2.dll

NuGet Package: DevExpress.Wpf.Scheduling

#Declaration

public ObservableCollection<AppointmentItem> SelectedAppointments { get; }

#Property Value

Type Description
ObservableCollection<AppointmentItem>

A collection of AppointmentItem objects.

#Remarks

Use the SelectedAppointments property to obtain the currently selected appointments.

To provide a source to the selected appointments, use the SchedulerControl.SelectedAppointmentsSource property.

The following code snippet demonstrates how to display the selected appointment’s subject values in an application.

View Example: Obtain Selected Appointment, Resource, and Time Interval

<ScrollViewer Grid.Row="0" VerticalScrollBarVisibility="Auto">
    <ItemsControl ItemsSource="{DXBinding '@e(schedulerControl).SelectedAppointments'}">
        <ItemsControl.ItemTemplate>
            <DataTemplate>
                <TextBox Background="Beige" Text="{Binding Subject}" />
            </DataTemplate>
        </ItemsControl.ItemTemplate>
    </ItemsControl>
</ScrollViewer>
See Also