Skip to main content

SchedulerMenuEventArgs.Menu Property

Gets the popup menu for which the SchedulerControl.PopupMenuShowing event has been raised.

Namespace: DevExpress.Xpf.Scheduler

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

#Declaration

public PopupMenu Menu { get; }

#Property Value

Type Description
PopupMenu

A PopupMenu object, which is the popup menu for the event.

#Examples

This example demonstrates how to customize the SchedulerControl popup menu at runtime. In particular, this sample demonstrates how to remove the default New Recurring Appointment menu item from the Default Popup Menu, and add a custom item instead.

For this, it is necessary to handle the SchedulerControl.PopupMenuShowing event. In this event handler, use the SchedulerMenuEventArgs.Menu property to check whether the event has been raised for the default popup menu and change the SchedulerMenuEventArgs.Customizations collection to modify a list of popup menu items.

See Also