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

OptionsContextMenu.AppointmentContextMenuActions Property

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

Namespace: DevExpress.Xpf.Scheduling

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

Declaration

public ObservableCollection<IControllerAction> AppointmentContextMenuActions { get; }
Public ReadOnly Property AppointmentContextMenuActions 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 AppointmentContextMenuActions
SchedulerControl
.OptionsContextMenu.AppointmentContextMenuActions

Remarks

Add InsertAction, UpdateAction or RemoveAction to the AppointmentContextMenuActions collection to modify the integrated appointment's context menu.

DXScheduler_ContextMenus_Appointment

Use the OptionsContextMenu.AppointmentContextMenu property to create a custom appointment context menu.

Examples

    <dxsch:OptionsContextMenu.AppointmentContextMenuActions>
        <!--Insert the "Recurrence" item invoking the Recurrence dialog-->
        <dxb:InsertAction Index="-1">
            <dxb:BarButtonItem Content="Recurrence" 
                               Glyph="{dx:DXImage Image=Recurrence_32x32.png}"                                               
                               Command="{Binding ElementName=schedulerCommands, Path=OpenRecurrenceWindowCommand}">
            </dxb:BarButtonItem>
        </dxb:InsertAction>
        <!--Insert the check item which converts the selected appointment to an all day event-->
        <dxb:InsertAction>
            <dxb:BarCheckItem x:Name="allDayCheck" 
                              Content="All-Day Appointment" 
                              Glyph="{dx:DXImage Image=Check_16x16.png}" 
                              CheckedChanged="allDayCheck_CheckedChanged"/>
        </dxb:InsertAction>
</dxsch:OptionsContextMenu.AppointmentContextMenuActions>
See Also