Back to Devexpress

DefaultBarItemNames.ContextMenu_Items_Cell_Actions_NewAllDayEvent Field

wpf-devexpress-dot-xpf-dot-scheduling-dot-defaultbaritemnames-dot-contextmenu-underscore-items-underscore-cell-underscore-actions-underscore-newalldayevent.md

latest3.0 KB
Original Source

DefaultBarItemNames.ContextMenu_Items_Cell_Actions_NewAllDayEvent Field

Returns the ContextMenu_Items_Cell_Actions_NewAllDayEvent string. Identifies the New All Day Event item in the Cell Pop-Up Menu.

Namespace : DevExpress.Xpf.Scheduling

Assembly : DevExpress.Xpf.Scheduling.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public const string ContextMenu_Items_Cell_Actions_NewAllDayEvent = "ContextMenu_Items_Cell_Actions_NewAllDayEvent"
vb
Public Const ContextMenu_Items_Cell_Actions_NewAllDayEvent As String = "ContextMenu_Items_Cell_Actions_NewAllDayEvent"

Field Value

Type
String

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

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-handle-popupmenushowing-event-to-customize-context-menus/CS/PopUpMenuShowingEvent/MainWindow.xaml.cs#L21

csharp
if (menuItem != null) {
    if (menuItem != null && menuItem.Name == DefaultBarItemNames.ContextMenu_Items_Cell_Actions_NewAllDayEvent) {
        menuItem.Content = "Create All-Day Appointment";

wpf-scheduler-handle-popupmenushowing-event-to-customize-context-menus/VB/PopUpMenuShowingEvent/MainWindow.xaml.vb#L24

vb
If menuItem IsNot Nothing Then
    If menuItem IsNot Nothing AndAlso Equals(menuItem.Name, DefaultBarItemNames.ContextMenu_Items_Cell_Actions_NewAllDayEvent) Then
        menuItem.Content = "Create All-Day Appointment"

See Also

DefaultBarItemNames Class

DefaultBarItemNames Members

DevExpress.Xpf.Scheduling Namespace