Back to Devexpress

SchedulerViewBase.NavigationButtonVisibility Property

windowsforms-devexpress-dot-xtrascheduler-dot-schedulerviewbase-965b3603.md

latest4.7 KB
Original Source

SchedulerViewBase.NavigationButtonVisibility Property

Gets or sets the condition for display of the Navigation Buttons.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
[DefaultValue(NavigationButtonVisibility.Auto)]
[XtraSerializableProperty]
public NavigationButtonVisibility NavigationButtonVisibility { get; set; }
vb
<DefaultValue(NavigationButtonVisibility.Auto)>
<XtraSerializableProperty>
Public Property NavigationButtonVisibility As NavigationButtonVisibility

Property Value

TypeDefaultDescription
NavigationButtonVisibilityAuto

A NavigationButtonVisibility enumeration value which specifies when the Navigation Buttons are visible.

|

Available values:

NameDescription
Auto

Navigation buttons are visible if there are no appointments displayed within the current view area.

| | Always |

Navigation buttons are always visible.

| | Never |

Navigation buttons are always hidden.

|

Remarks

Use the NavigationButtonVisibility property to specify that the Navigation Buttons are always visible, always hidden, or whether its visibility is decided by the SchedulerControl. The latter means that they are visible when the current view doesn’t have any appointments within its visible working area.

The following code snippets (auto-collected from DevExpress Examples) contain references to the NavigationButtonVisibility 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.

winforms-scheduler-customize-popup-menu/CS/PopupMenuCustomization/Form1.cs#L27

csharp
schedulerControl1.DateNavigationBar.Visible = false;
    schedulerControl1.ActiveView.NavigationButtonVisibility = NavigationButtonVisibility.Never;
}

winforms-scheduler-create-gantt-chart/CS/GanttExample/Form1.cs#L56

csharp
schedulerControl1.GanttView.ShowResourceHeaders = false;
schedulerControl1.GanttView.NavigationButtonVisibility = NavigationButtonVisibility.Never;
// Disable user sorting in the Resource Tree (clicking the column will not change the sort order).

winforms-scheduler-customize-popup-menu/VB/PopupMenuCustomization/Form1.vb#L24

vb
schedulerControl1.DateNavigationBar.Visible = False
    schedulerControl1.ActiveView.NavigationButtonVisibility = NavigationButtonVisibility.Never
End Sub

winforms-scheduler-create-gantt-chart/VB/GanttExample/Form1.vb#L59

vb
schedulerControl1.GanttView.ShowResourceHeaders = False
schedulerControl1.GanttView.NavigationButtonVisibility = NavigationButtonVisibility.Never
' Disable user sorting in the Resource Tree (clicking the column will not change the sort order).

See Also

SchedulerViewBase Class

SchedulerViewBase Members

DevExpress.XtraScheduler Namespace