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.v14.2.dll

#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 the OptionsBehavior.SelectOnRightClick property from the following objects:

Object Type Path to SelectOnRightClick
SchedulerControl
.OptionsBehavior.SelectOnRightClick

#Remarks

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.

#Examples

This example demonstrates how to specify basic characteristics of the SchedulerControl 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