# scheduler-date-wise-grouping

> SfScheduler grouped by date across resources, with custom headers, ResourceMapping, and recurrence.

**Framework:** winui  **Component:** Scheduler  **Variant:** date-wise-grouping

## Get this item

**If you are an agent, fetch the JSON.** Source is inlined, so one request is enough and no tooling is required:

```
GET https://ai.syncfusion.com/r/winui/scheduler-date-wise-grouping.json
```

**Install Package(s)**

```bash
dotnet add package Syncfusion.Scheduler.WinUI
```

**Notes**

- Syncfusion release: 2026 Volume 3 (v35.1.37)
- The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md

## Source files

### src/components/scheduler-date-wise-grouping/Scheduler.xaml

```xaml
﻿<Page
    x:Class="Scheduler.Samples.DateWiseGrouping.Scheduler"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:scheduler="using:Syncfusion.UI.Xaml.Scheduler"
    xmlns:local="using:Scheduler">

    <Grid>
        <Grid.DataContext>
            <local:SchedulerViewModel />
        </Grid.DataContext>

        <scheduler:SfScheduler x:Name="scheduler"
                               ItemsSource="{Binding ResourceAppointments}"
                               ResourceCollection="{Binding Resources}"
                               ResourceGroupType="Date"
                               ViewType="Week"
                               AllowedViewTypes="Day,Week,WorkWeek"
                               DisplayDate="{Binding DisplayDate}">
            <scheduler:SfScheduler.ResourceHeaderTemplate>
                <DataTemplate>
                    <Grid Background="Transparent" BorderBrush="{Binding Data.BackgroundBrush}" BorderThickness="0,3,0,0">
                        <StackPanel VerticalAlignment="Center" Orientation="Vertical">
                            <Image HorizontalAlignment="Center" VerticalAlignment="Center"
                                   Width="55" Height="55"
                                   Source="{Binding Data.ImageSource}" />
                            <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center"
                                       FontSize="15" Text="{Binding Data.Name}"/>
                        </StackPanel>
                    </Grid>
                </DataTemplate>
            </scheduler:SfScheduler.ResourceHeaderTemplate>
            <scheduler:SfScheduler.ResourceMapping>
                <scheduler:ResourceMapping Id="ID"
                                           Name="Name"
                                           Background="BackgroundBrush"
                                           Foreground="ForegroundBrush"/>
            </scheduler:SfScheduler.ResourceMapping>
            <scheduler:SfScheduler.AppointmentMapping>
                <scheduler:AppointmentMapping
                    Subject="EventName"
                    StartTime="From"
                    EndTime="To"
                    AppointmentBackground="Color"
                    Foreground="ForegroundColor"
                    IsAllDay="IsAllDay"
                    StartTimeZone="StartTimeZone"
                    EndTimeZone="EndTimeZone"
                    RecurrenceExceptionDates="RecurrenceExceptions"
                    RecurrenceRule="RecurrenceRule"
                    RecurrenceId="RecurrenceId"
                    ResourceIdCollection="Resources"
                    Id="Id"/>
            </scheduler:SfScheduler.AppointmentMapping>
            <scheduler:SfScheduler.MonthViewSettings>
                <scheduler:MonthViewSettings AppointmentDisplayMode="Appointment"
                                             AppointmentDisplayCount="1"/>
            </scheduler:SfScheduler.MonthViewSettings>
            <scheduler:SfScheduler.DaysViewSettings>
                <scheduler:DaysViewSettings ResourceHeaderSize="100"/>
            </scheduler:SfScheduler.DaysViewSettings>
        </scheduler:SfScheduler>
    </Grid>
</Page>
```
