Articles in this section
Category / Section

How to change the time interval and height of timeslot views in the WPF Scheduler?

3 mins read

The WPF Scheduler allows to change the interval of timeslots and interval height in the days and timeline views. 

Change the time interval and interval height in the day, week, and workweek views

C#

Using the TimeInterval property in the DaysViewSettings, the interval of timeslots can be changed in the day, week, and workweek views.

Schedule.ViewType = SchedulerViewType.Week;
Schedule.DaysViewSettings.TimeInterval = new System.TimeSpan(0, 120, 0);

 

XAML

Using the TimeIntervalSize property in the DaysViewSettings, the interval height of the timeslots can be changed in day, week, and workweek views.

<syncfusion:SfScheduler x:Name="Schedule" ViewType="Week">
    <syncfusion:SfScheduler.DaysViewSettings>
        <syncfusion:DaysViewSettings 
    TimeIntervalSize="120"/>
    </syncfusion:SfScheduler.DaysViewSettings>
</syncfusion:SfScheduler>

 

Change the time interval and interval height in timeline views

 

C#

Using the TimeInterval property in the TimelineViewSettings, the interval of timeslots can be changed in the timeline day, timeline week, and timeline workweek views.

Schedule.ViewType = SchedulerViewType.TimelineWeek;
Schedule.TimelineViewSettings.TimeInterval = new System.TimeSpan(0, 120, 0);

XAML

Using the TimeIntervalSize property in the TimelineViewSettingsthe interval height of the timeslots can be changed in all timeline views.

<syncfusion:SfScheduler x:Name="Schedule"
ViewType="TimelineWeek">
    <syncfusion:SfScheduler.TimelineViewSettings>
        <syncfusion:TimelineViewSettings 
    TimeIntervalSize="120"/>
    </syncfusion:SfScheduler.TimelineViewSettings>
</syncfusion:SfScheduler>

View Sample in GitHub

TimeInterval customization in Day,Week and WorkWeekViews

                                                   Change time interval and time interval height in days view

TimeInterval customization in TimelineView

                                                 Change time interval and time interval height in timeline views

 

Conclusion

I hope you enjoyed learning about how to change the time interval and height of timeslot views in the WPF Scheduler.

You can refer to our WPF Scheduler feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied