Articles in this section
Category / Section

How to customize the leading and trailing days visibility in WPF Scheduler (Calendar)

4 mins read

You can customize the leading and trailing days visibility of the scheduler month view by using the LeadingDaysVisibility and the TrailingDaysVisibility property of MonthViewSettings in WPF SfScheduler.

XAML

To customize the leading and trailing days visibility of the scheduler month view by setting the LeadingDaysVisibility and TrailingDaysVisibility property to Collapsed.

<Window.DataContext>
    <local:SchedulerViewModel/>
</Window.DataContext>
    <Grid>
        <syncfusion:SfScheduler x:Name="Schedule"
                                                ViewType="Month">
            <syncfusion:SfScheduler.MonthViewSettings>
                <syncfusion:MonthViewSettings
                LeadingDaysVisibility="Collapsed"
                TrailingDaysVisibility="Collapsed"/>
            </syncfusion:SfScheduler.MonthViewSettings>
        </syncfusion:SfScheduler>
    </Grid>
</Window>   

View sample in GitHub

Demo image for trailing and leading days

 

 

 

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