SchedulerMenuEventArgs.Customizations Property
Provides access to a collection of customizations of the popup menu, customized via the SchedulerControl.PopupMenuShowing event handler.
Namespace: DevExpress.Xpf.Scheduler
Assembly: DevExpress.Xpf.Scheduler.v14.2.dll
#Declaration
#Property Value
Type | Description |
---|---|
Bar |
A Bar |
#Remarks
Use the Customizations property to manage popup menu items (for example, remove existing menu items or/and add new items). SchedulerControl also provides the SchedulerControl.DefaultMenuCustomizations and SchedulerControl.AppointmentMenuCustomizations properties, allowing you to customize default and appointment popup menus.
#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.