Back to Devexpress

OptionsContextMenu.AppointmentContextMenuActions Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-optionscontextmenu-c0f25d78.md

latest4.6 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

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

.OptionsContextMenu .AppointmentContextMenuActions

|

Remarks

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

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

Example

View Example

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

wpf-scheduler-customize-context-menus/CS/DXScheduler_PopUpMenuCustomization/MainWindow.xaml#L85

xml
<!--region #AppointmentContextMenu-->
<dxsch:OptionsContextMenu.AppointmentContextMenuActions>
    <!--Insert the "Recurrence" item invoking the Recurrence dialog-->

See Also

Pop-Up Menus

OptionsContextMenu Class

OptionsContextMenu Members

DevExpress.Xpf.Scheduling Namespace