wpf-devexpress-dot-xpf-dot-scheduling-dot-optionscontextmenu-f21b6bd9.md
Provides access to the collection of actions used to customize the appointment drop’s context menu.
Namespace : DevExpress.Xpf.Scheduling
Assembly : DevExpress.Xpf.Scheduling.v25.2.dll
NuGet Package : DevExpress.Wpf.Scheduling
public ObservableCollection<IControllerAction> AppointmentDropContextMenuActions { get; }
Public ReadOnly Property AppointmentDropContextMenuActions As ObservableCollection(Of IControllerAction)
| Type | Description |
|---|---|
| ObservableCollection<IControllerAction> |
A collection of context menu customization actions.
|
You can access this nested property as listed below:
| Object Type | Path to AppointmentDropContextMenuActions |
|---|---|
| SchedulerControl |
.OptionsContextMenu .AppointmentDropContextMenuActions
|
Add InsertAction, UpdateAction or RemoveAction to the AppointmentDropContextMenuActions collection to modify the integrated appointment drop’s context menu. This menu is invoked when drag-and-dropping the appointment with the right mouse button:
Use the OptionsContextMenu.AppointmentDropContextMenu property to provide the custom context menu of this type.
<dxsch:OptionsContextMenu.AppointmentDropContextMenuActions>
<!--Remove the "Copy" item-->
<dxb:RemoveAction ElementName="{x:Static Member=dxsch:DefaultBarItemNames.ContextMenu_Items_AppointmentDrop_Actions_CopyAppointmentsOnDrop}"/>
</dxsch:OptionsContextMenu.AppointmentDropContextMenuActions>
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AppointmentDropContextMenuActions 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.
wpf-scheduler-customize-context-menus/CS/DXScheduler_PopUpMenuCustomization/MainWindow.xaml#L59
<!--region #AppointmentDropContextMenu-->
<dxsch:OptionsContextMenu.AppointmentDropContextMenuActions>
<!--Remove the "Copy" item-->
See Also