How to use the move to time method in WPF Schedule?
MoveToTime method of WPF Schedule is used to scroll to specific timeslots by passing the TimeSpan value. This section explains in detail about the MoveToTime method in SfSchedule control. It is applicable for Day, Week, Work-week and Timeline view.
MoveToTime method in SfSchedule
Create a WPF application and add SfSchedule control to it.
XAML
<syncfusion:SfSchedule x:Name="Schedule" ScheduleType="Day"/>
To move to a particular timeslot in the Schedule control, the required TimeSpan value needs to be passed in the MoveTime method.
XAML
Schedule.MoveToTime(new TimeSpan(6, 0, 0));
Note: Since this method handles the position of scroll viewer, it has to be called once the Schedule view is loaded.
The following sample illustrates how you can move to a specific time through the MoveToTime method with a button click event.
Sample Link:
The following are screenshots for this feature in different views.
Figure 1: MoveToTime method used in Day View
Figure 2: MoveToTime method used in Week view
Figure 3: MoveToTime method used in Work Week view
Figure 4: MoveToTime method used in Timeline view
Conclusion
I hope you enjoyed learning about how to use the move to time method in WPF Schedule.
You can refer to our WPF Schedule feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our WPF Schedule example to understand how to create and manipulate data.
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 forums, Direct-Trac, or feedback portal. We are always happy to assist you!