Back to Devexpress

TimelineView.ZoomRange Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-timelineview-2e122527.md

latest2.4 KB
Original Source

TimelineView.ZoomRange Property

Allows you to limit the zoom level. This is a dependency property.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public TimeSpanRange ZoomRange { get; set; }
vb
Public Property ZoomRange As TimeSpanRange

Property Value

TypeDescription
TimeSpanRange

A DevExpress.Mvvm.TimeSpanRange value that specifies the zoom level limit.

|

Remarks

The Zoom property value is a System.TimeSpan value that specifies the time interval per screen pixel.

The image below illustrates the TimelineView with the Zoom property set to 30 seconds. Each 30-minute span occupies 60 device-independent pixels (2 DIP for each minute).

The code snippet below illustrates how to limit the minimum Zoom value to 10 seconds (per DIP).

xaml
<dxsch:TimelineView ZoomRange="00:00:10-00:00:00">
</dxsch:TimelineView>

The ActualZoomRange property returns the actual zoom level limit based on the VisibleIntervals property value and the current viewport’s width. The ViewportInterval property returns the currently visible interval.

Note

The ZoomRange property is not in effect if the ViewMode property is set to Legacy.

See Also

Zoom

ViewportInterval

TimelineView Class

TimelineView Members

DevExpress.Xpf.Scheduling Namespace