RequestTimescaleRulersEventArgs.NonworkingDayVisibility Property

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

Namespace: DevExpress.Xpf.Gantt

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

Declaration

public Visibility NonworkingDayVisibility { get; set; }
Public Property NonworkingDayVisibility As Visibility

Property Value

Type Description
Visibility

The nonworking day visibility.

Remarks

Use the NonworkingDayVisibility property to specify the nonworking day 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 day visibility.

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