Skip to main content
A newer version of this page is available. .

SchedulerControl.TimeRulerMenuCustomizations Property

Allows you to customize a time ruler‘s popup menu, by adding new menu items or removing existing items.

Namespace: DevExpress.Xpf.Scheduler

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

Declaration

public BarManagerActionCollection TimeRulerMenuCustomizations { get; }

Property Value

Type Description
BarManagerActionCollection

A BarManagerActionCollection object.

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.

Use the TimeRulerMenuCustomizations property to modify the popup menu, invoked when a time ruler is right-clicked.

Example

This example demonstrates how to add a custom menu item to the time ruler‘s popup menu of the SchedulerControl via the SchedulerControl.TimeRulerMenuCustomizations property.

DXScheduler_TimeRulerMenuCustomizations

private void customButtonItem_ItemClick(object sender, ItemClickEventArgs e) {
    // Implement the custom action.
    // ...
}
See Also