Hi
Carpenter,
Thank
you for reaching out to us. To achieve your requirement, you can use the `ViewChanged`
event, which is triggered whenever the scheduler view or visible dates are
changed, such as when navigating forward or backward. Within this event, you
can retrieve the first date of the displayed week by accessing the `StartDate`
property of the `NewValue` in the event arguments. Here's a code snippet to
demonstrate how you can do this:
|
<schedule:SfScheduler
x:Name="schedule"
ViewType="TimelineWorkWeek"
ViewChanged="schedule_ViewChanged"
/>
private
void schedule_ViewChanged(object sender, ViewChangedEventArgs e)
{
DateTime firstDate = e.NewValue.StartDate;
}
|
For
additional details, you can refer to our User Guide documentation: Events-ViewChanged
If
you have any further questions or need additional assistance, please don't
hesitate to contact us. We're happy to help!
Regards,
Vidyalakshmi
M.