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

OptionsContextMenu.TimeRulerContextMenuActions Property

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

Namespace: DevExpress.Xpf.Scheduling

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

Declaration

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

Remarks

Add InsertAction, UpdateAction or RemoveAction to the TimeRulerContextMenuActions collection to modify the integrated time ruler's context menu:

DXScheduler_ContextMenus_TimeRuler

Use the OptionsContextMenu.TimeRulerContextMenu property to create a custom context menu for a time ruler.

Examples

    <dxsch:OptionsContextMenu.TimeRulerContextMenuActions>
        <!--Hide the "New All Day Event" and "New Recurring Event" items-->
        <dxb:UpdateAction ElementName="{x:Static Member=dxsch:DefaultBarItemNames.ContextMenu_Items_TimeRuler_Actions_NewAllDayEvent}" 
                          PropertyName="IsVisible" 
                          Value="False"/>
        <dxb:UpdateAction ElementName="{x:Static Member=dxsch:DefaultBarItemNames.ContextMenu_Items_TimeRuler_Actions_NewRecurringEvent}" 
                          PropertyName="IsVisible" 
                          Value="False"/>
    <!--Disable the "New Appointment" and "New Recurring Appointment" item-->
        <dxb:UpdateAction ElementName="{x:Static Member=dxsch:DefaultBarItemNames.ContextMenu_Items_TimeRuler_Actions_NewAppointment}" 
                          PropertyName="IsEnabled" 
                          Value="False"/>
        <dxb:UpdateAction ElementName="{x:Static Member=dxsch:DefaultBarItemNames.ContextMenu_Items_TimeRuler_Actions_NewRecurringAppointment}" 
                          PropertyName="IsEnabled" 
                          Value="False"/>
</dxsch:OptionsContextMenu.TimeRulerContextMenuActions>
See Also