Back to Devexpress

OptionsContextMenu.CellContextMenuActions Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-optionscontextmenu-76898e8a.md

latest3.3 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public ObservableCollection<IControllerAction> CellContextMenuActions { get; }
vb
Public ReadOnly Property CellContextMenuActions 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 CellContextMenuActions
SchedulerControl

.OptionsContextMenu .CellContextMenuActions

|

Remarks

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.

Example

View Example

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

Pop-Up Menus

OptionsContextMenu Class

OptionsContextMenu Members

DevExpress.Xpf.Scheduling Namespace