wpf-devexpress-dot-xpf-dot-scheduling-dot-optionscontextmenu-76898e8a.md
Provides access to the collection of actions used to customize the time cell’s context menu.
Namespace : DevExpress.Xpf.Scheduling
Assembly : DevExpress.Xpf.Scheduling.v25.2.dll
NuGet Package : DevExpress.Wpf.Scheduling
public ObservableCollection<IControllerAction> CellContextMenuActions { get; }
Public ReadOnly Property CellContextMenuActions 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 CellContextMenuActions |
|---|---|
| SchedulerControl |
.OptionsContextMenu .CellContextMenuActions
|
Add InsertAction, UpdateAction or RemoveAction to the CellContextMenuActions collection to modify the integrated time cell’s context menu:
Use the OptionsContextMenu.CellContextMenu property to provide a custom time cell’s context menu.
<dxsch:OptionsContextMenu.CellContextMenu>
<dxb:PopupMenu>
<dxb:PopupMenu.Items>
<dxb:BarButtonItem Content="Add Broadcast..."
Glyph="{dx:DXImage Image=Appointment_16x16.png}"
Command="{Binding ElementName=schedulerCommands, Path=ShowNewAppointmentWindowCommand}"/>
<dxb:BarButtonItem Content="Add News Block..."
Glyph="{dx:DXImage Image=RecurringAppointment_16x16.png}"
Command="{Binding ElementName=schedulerCommands, Path=ShowNewRecurringAppointmentWindowCommand}"/>
</dxb:PopupMenu.Items>
</dxb:PopupMenu>
</dxsch:OptionsContextMenu.CellContextMenu>
See Also