Skip to main content

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

NuGet Package: DevExpress.Wpf.Scheduling

Declaration

public ObservableCollection<IControllerAction> AppointmentContextMenuActions { 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 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.

Example

View Example

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AppointmentContextMenuActions property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also