Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Wpf.Scheduling

#Declaration

public ObservableCollection<IControllerAction> CellContextMenuActions { get; }

#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.

#Example

View Example

<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