Back to Devexpress

StripLineBase.HideOnZoom Property

wpf-devexpress-dot-xpf-dot-gantt-dot-striplinebase-1e7e425c.md

latest1.8 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Gantt

Declaration

csharp
public TimeSpan? HideOnZoom { get; set; }
vb
Public Property HideOnZoom As TimeSpan?

Property Value

TypeDescription
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.

xaml
<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

StripLineBase Class

StripLineBase Members

DevExpress.Xpf.Gantt Namespace