Back to Devexpress

DateTimeScaleOptionsBase.WorkdaysOnly Property

wpf-devexpress-dot-xpf-dot-charts-dot-datetimescaleoptionsbase-4e02b991.md

latest3.5 KB
Original Source

DateTimeScaleOptionsBase.WorkdaysOnly Property

Specifies whether holidays and non-working days should be excluded from the axis scale.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public bool WorkdaysOnly { get; set; }
vb
Public Property WorkdaysOnly As Boolean

Property Value

TypeDescription
Boolean

true, to exclude non-working days from the axis scale; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to WorkdaysOnly
ArgumentAxis3D

.DateTimeScaleOptions .WorkdaysOnly

| | AxisX2D |

.DateTimeScaleOptions .WorkdaysOnly

| | AxisX3D |

.DateTimeScaleOptions .WorkdaysOnly

| | RadarAxisX2D |

.DateTimeScaleOptions .WorkdaysOnly

|

Remarks

The WorkdaysOnly property is available for an axis if its scale type is date-time.

Property valuesResulting image
WorkdaysOnly = false
WorkdaysOnly = true

After the WorkdaysOnly property is enabled, the DateTimeScaleOptionsBase.WorkdaysOptions allow you to specify non-working days, holidays and strict workdays for the axis scale.

For more information, refer to Work Time and Workday Configuration.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the WorkdaysOnly 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.

wpf-bind-a-range-control-to-a-chart-control/CS/GoldPrices/MainWindow.xaml#L42

xml
<dxc:AxisX2D.DateTimeScaleOptions>
    <dxc:ContinuousDateTimeScaleOptions WorkdaysOnly="True"
                                        AutoGrid="True"/>

See Also

DateTimeScaleOptionsBase Class

DateTimeScaleOptionsBase Members

DevExpress.Xpf.Charts Namespace