1. Tag Results
week-number-template (2)
1 - 2 of 2
How to customize week number using DataTemplate in WinUI Scheduler (Calendar)
Customize the default appearance of a week number template in the month view, by using the WeekNumberTemplate property of the MonthViewSettings in the WinUI Scheduler. XAML Display the week number of a year in the scheduler month view by setting the ShowWeekNumber to true in the MonthViewSettings, and customize the week number appearance by using the WeekNumberTemplate property of the MonthViewSettings. <Grid>     <syncfusion:SfScheduler                        x:Name="Schedule"                        ViewType="Month" >         <syncfusion:SfScheduler.MonthViewSettings>             <syncfusion:MonthViewSettings ShowWeekNumber="True">                 <syncfusion:MonthViewSettings.WeekNumberTemplate>                     <DataTemplate>                         <Grid >                             <TextBlock                                   Foreground="Red"                                   Text="{Binding}"                                   VerticalAlignment="Top"                                   HorizontalAlignment="Right"                                   FontStyle="Normal">                             </TextBlock>                         </Grid>                     </DataTemplate>                 </syncfusion:MonthViewSettings.WeekNumberTemplate>             </syncfusion:MonthViewSettings>         </syncfusion:SfScheduler.MonthViewSettings>     </syncfusion:SfScheduler> </Grid> Take a moment to pursue the documentation. You can also find the options like customizing the week number.  
How to customize week number using DataTemplate in WPF Scheduler (Calendar)
You can customize the default appearance of a week number template in month view by using the WeekNumberTemplate property of MonthViewSettings in WPF SfScheduler. XAML Display the week number of a year in the scheduler month view by setting the ShowWeekNumber to true in the MonthViewSettings and customize the week number appearance by using the WeekNumberTemplate property of MonthViewSettings. <Grid>         <syncfusion:SfScheduler        x:Name="Schedule"        ViewType="Month" >             <syncfusion:SfScheduler.MonthViewSettings>                 <syncfusion:MonthViewSettings ShowWeekNumber="True">                     <syncfusion:MonthViewSettings.WeekNumberTemplate>                         <DataTemplate>                             <Grid >                                 <Label Foreground="Red"                                    Content="{Binding}"                                    VerticalAlignment="Center"                                    HorizontalAlignment="Center"                                                                          FontStyle="Oblique">                                 </Label>                             </Grid>                         </DataTemplate>                     </syncfusion:MonthViewSettings.WeekNumberTemplate>                 </syncfusion:MonthViewSettings>             </syncfusion:SfScheduler.MonthViewSettings>         </syncfusion:SfScheduler> </Grid> View sample in GitHub    
No articles found
No articles found
1 of 1 pages (2 items)