A newer version of this page is available. Switch to the current version.

OptionsContextMenu.CellContextMenuActions Property

Provides access to the collection of actions used to customize the time cell's context menu.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v19.1.dll

Declaration

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

Property Value

Type Description
ObservableCollection<IControllerAction>

A collection of context menu customization actions.

Property Paths

You can access this nested property as listed below:

Object Type Path to CellContextMenuActions
SchedulerControl
.OptionsContextMenu.CellContextMenuActions

Remarks

Add InsertAction, UpdateAction or RemoveAction to the CellContextMenuActions collection to modify the integrated time cell's context menu:

DXScheduler_ContextMenus_Cell

Use the OptionsContextMenu.CellContextMenu property to provide a custom time cell's context menu.

Examples

<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