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

SchedulerControl.AppointmentMenuCustomizations Property

Allows you to customize an appointment popup menu of the SchedulerControl, by adding new menu items or removing existing items.

Namespace: DevExpress.Xpf.Scheduler

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

Declaration

public BarManagerActionCollection AppointmentMenuCustomizations { 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 AppointmentMenuCustomizations property to modify the Scheduler control appointment popup menu, invoked when an appointment is right-clicked.

Also, the appointment popup menu can be customized via the SchedulerControl.PopupMenuShowing event.

Example

This example demonstrates how to add custom menu items to the Appointment Popup Menu of the SchedulerControl using the SchedulerControl.AppointmentMenuCustomizations property in XAML. Add a bar item (BarCheckItem, BarButtonItem or BarItemSeparator class instance) to the collection and specify item properties. To insert an item into a specific position, attach the BarItemLinkActionBase.ItemLinkIndex property.

<!--Add items to the Appointment popup menu-->
<dxsch:SchedulerControl.AppointmentMenuCustomizations>
    <dxb:BarItemSeparator dxb:BarItemLinkActionBase.ItemLinkIndex="1" />
    <dxb:BarCheckItem Name="customCheckItem" 
                      Content="BarCheckItem Added in XAML" 
                      dxb:BarItemLinkActionBase.ItemLinkIndex="2" 
                      CheckedChanged="customCheckItem_CheckedChanged" />
    <dxb:BarButtonItem Name="customButtonItem" 
                       Content="BarButtonItem Added in XAML" 
                       dxb:BarItemLinkActionBase.ItemLinkIndex="3"
                       ItemClick="customButtonItem_ItemClick"/>
    <dxb:BarItemSeparator dxb:BarItemLinkActionBase.ItemLinkIndex="4" />
</dxsch:SchedulerControl.AppointmentMenuCustomizations>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AppointmentMenuCustomizations property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also