Skip to main content

OptionsView.ShowOnlyResourceAppointments Property

Gets or sets a value indicating whether to show appointments that do not belong to any resource in the current scheduling area.

Namespace: DevExpress.Xpf.Scheduler

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

NuGet Package: DevExpress.Wpf.Scheduler

Declaration

public bool ShowOnlyResourceAppointments { get; set; }

Property Value

Type Description
Boolean

true to display only the appointments that are associated with resources; false to display all appointments.

Property Paths

You can access this nested property as listed below:

Object Type Path to ShowOnlyResourceAppointments
SchedulerControl
.OptionsView .ShowOnlyResourceAppointments

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.

An appointment does not belong to any particular resource if the appointment’s Appointment.ResourceId property is set to the EmptyResourceId.Id value. If an appointment does not belong to any particular resource, it is considered to be assigned to all resources. By default, these appointments are shown for all resources simultaneously.

If you want to display only the appointments associated with a particular resource, set the ShowOnlyResourceAppointments property to true.

Example

This example demonstrates how to specify the Scheduler control’s presentation, using the SchedulerControl.OptionsView property.

<dxsch:SchedulerControl.OptionsView>
    <dxsch:OptionsView FirstDayOfWeek="Tuesday" ShowOnlyResourceAppointments="True">
        <dxsch:OptionsView.NavigationButtonOptions>
            <dxsch:NavigationButtonOptions Visibility="Auto" AppointmentSearchInterval="2"/>
        </dxsch:OptionsView.NavigationButtonOptions>
    </dxsch:OptionsView>
</dxsch:SchedulerControl.OptionsView>
See Also