Skip to main content

OptionsBehavior.SelectOnRightClick Property

Specifies whether the right-click should select a time cell under the cursor.

Namespace: DevExpress.Xpf.Scheduler

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

NuGet Package: DevExpress.Wpf.Scheduler

Declaration

public bool SelectOnRightClick { get; set; }

Property Value

Type Description
Boolean

true to select a time cell with a right-click; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to SelectOnRightClick
SchedulerControl
.OptionsBehavior .SelectOnRightClick

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.

When the SelectOnRightClick property is set to true, if a time cell under the cursor is not yet selected, the current selection is changed to include only this cell. A right-click within highlighted cells does not change the selection.

Example

This example demonstrates how to specify basic characteristics of the Scheduler control using the SchedulerControl.OptionsBehavior property.

<dxsch:SchedulerControl.OptionsBehavior>
    <dxsch:OptionsBehavior ClientTimeZoneId="Central Pacific Standard Time" 
                           RecurrentAppointmentDeleteAction="Ask" 
                           RecurrentAppointmentEditAction="Occurrence"
                           RemindersFormDefaultAction="DismissAll"
                           ShowRemindersForm="True" 
                           SelectOnRightClick="True"/>
</dxsch:SchedulerControl.OptionsBehavior>
See Also