Articles in this section
Category / Section

How to customize the header using DataTemplate in WinUI Scheduler (Calendar)

4 mins read

In the WinUI Scheduler, customize the header using the HeaderTemplate property of the Scheduler.

XAML

The HeaderTemplate is defined for the Scheduler as shown in the following code sample.

<scheduler:SfScheduler x:Name="scheduler"
                        ViewType="Month"
                        >
    <scheduler:SfScheduler.HeaderTemplate>
        <DataTemplate >
            <TextBlock 
                FontWeight="Bold"
            Foreground="Blue"
            FontSize="15"
            FontFamily="fonts/bradhitc.ttf #Bradley Hand ITC"
            Text="{Binding}" HorizontalAlignment='Stretch' VerticalAlignment="Stretch"/>
        </DataTemplate>
    </scheduler:SfScheduler.HeaderTemplate>
</scheduler:SfScheduler>

Customize the header using DataTemplate

Take a moment to pursue the documentation. You can also find the options like customizing the scheduler header view.

 

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