Hi
Perter,
Your
requirement can be achieved with the help of SizeChanged event in the
SfScheduler. Inside the event, calculate the TimeIntervalSize by dividing the
scheduler width with total days in the month. Please refer to the code snippet
for your reference.
Code
Snippet
public MainWindow()
{
InitializeComponent();
schedule.TimelineViewSettings.TimeIntervalSize = (double)(this.Width /
DateTime.DaysInMonth(this.schedule.DisplayDate.Year, this.schedule.DisplayDate.Month));
}
private void
schedule_SizeChanged(object sender, SizeChangedEventArgs e)
{
schedule.TimelineViewSettings.TimeIntervalSize =
(e.NewSize.Width / DateTime.DaysInMonth(this.schedule.DisplayDate.Year,
this.schedule.DisplayDate.Month));
}
|
Please
refer to the demo sample in the following locations.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/SchedulerWPF759709168
Please
let us know if you have any concerns.
Regards,
SaiGanesh Sakthivel