Skip to main content

StripLineBase.HideOnZoom Property

Gets or sets the control zoom level at which the strip line must be hidden. This is a dependency property.

Namespace: DevExpress.Xpf.Gantt

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

NuGet Package: DevExpress.Wpf.Gantt

Declaration

public TimeSpan? HideOnZoom { get; set; }

Property Value

Type Description
Nullable<TimeSpan>

The control Zoom level.

Remarks

The control allows you to hide strip lines if end-users zoom out the view farther than specified by the HideOnZoom property.

The code sample below demonstrates a strip line that is hidden when the Gantt area’s GanttView.Zoom property value is less than one hour per device-independent pixel.

<dxgn:StripLine
    StartDate="08/14/2019 10:00:00" 
    Duration="5:0:0"
    HideOnZoom="1:0:0"/>

Note

The HideOnZoom property does not affect the CurrentDateTimeStripLine.

See Also