Back to Devexpress

OptionsContextMenu.AppointmentDropContextMenuActions Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-optionscontextmenu-f21b6bd9.md

latest4.0 KB
Original Source

OptionsContextMenu.AppointmentDropContextMenuActions Property

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

Declaration

csharp
public ObservableCollection<IControllerAction> AppointmentDropContextMenuActions { get; }
vb
Public ReadOnly Property AppointmentDropContextMenuActions As ObservableCollection(Of IControllerAction)

Property Value

TypeDescription
ObservableCollection<IControllerAction>

A collection of context menu customization actions.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AppointmentDropContextMenuActions
SchedulerControl

.OptionsContextMenu .AppointmentDropContextMenuActions

|

Remarks

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.

Example

View Example

xaml
<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

xml
<!--region #AppointmentDropContextMenu-->
<dxsch:OptionsContextMenu.AppointmentDropContextMenuActions>
    <!--Remove the "Copy" item-->

See Also

Pop-Up Menus

OptionsContextMenu Class

OptionsContextMenu Members

DevExpress.Xpf.Scheduling Namespace