Skip to main content

SchedulerMenuEventArgs Class

Provides data for the SchedulerControl.PopupMenuShowing event.

Namespace: DevExpress.Xpf.Scheduler

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

#Declaration

public class SchedulerMenuEventArgs :
    RoutedEventArgs

#Remarks

The SchedulerControl.PopupMenuShowing event occurs before a popup menu is created for a scheduler control, every time this menu is invoked. The SchedulerMenuEventArgs class introduces the SchedulerMenuEventArgs.Menu property that provides access to the popup menu for which the event was raised, and the SchedulerMenuEventArgs.Customizations property, allowing you to customize the popup menu.

Note, that SchedulerMenuEventArgs objects are automatically created, initialized and passed to SchedulerControl.PopupMenuShowing event handlers.

#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.

#Inheritance

Object
EventArgs
RoutedEventArgs
SchedulerMenuEventArgs
See Also