Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RequestTimescaleRulersEventArgs.NonworkingTimeVisibility Property

Gets or sets the nonworking time visibility at a current zoom level.

Namespace: DevExpress.Xpf.Gantt

Assembly: DevExpress.Xpf.Gantt.v24.2.dll

NuGet Package: DevExpress.Wpf.Gantt

#Declaration

public Visibility NonworkingTimeVisibility { get; set; }

#Property Value

Type
Visibility

#Remarks

Use the NonworkingTimeVisibility property to specify the nonworking time visibility at a current zoom level. Use the Zoom property to get the current zoom level.

#Example

The code sample below demonstrates how to change the nonworking time visibility.

private void view_RequestTimescaleRulers(object sender, DevExpress.Xpf.Gantt.RequestTimescaleRulersEventArgs e) {
    // Nonworking time intervals are not indicated with a specific background
    e.NonworkingTimeVisibility = Visibility.Hidden;
}
See Also