# scheduler-timeline-grouping

> SfSchedule timeline view with resource grouping, swimlanes, and grouped appointment display.

**Framework:** wpf  **Component:** Scheduler  **Variant:** timeline-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/wpf/scheduler-timeline-grouping.json
```

**Install Package(s)**

```bash
dotnet add package Syncfusion.SfScheduler.WPF
```

**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-timeline-grouping/Scheduler.xaml

```xaml
<UserControl x:Class="syncfusion.schedulerdemos.wpf.TimelineGrouping.Scheduler"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:interactivity="http://schemas.microsoft.com/xaml/behaviors"
        xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
        xmlns:local="clr-namespace:syncfusion.schedulerdemos.wpf" Unloaded="OnSampleUnloaded">

    <Grid>
        <Grid.DataContext>
            <local:BindingViewModel/>
        </Grid.DataContext>

        <syncfusion:SfScheduler x:Name="Schedule" BorderThickness="0"
                                ResourceGroupType="Resource"
                                ViewType="TimelineWeek"
                                AllowedViewTypes="TimelineDay,TimelineWeek,TimelineWorkWeek,TimelineMonth"
                                ResourceCollection="{Binding Resources}"
                                ItemsSource="{Binding ResourceAppointments}" HeaderHeight="32"
                                DisplayDate="{Binding DisplayDate}">
            <syncfusion:SfScheduler.ResourceHeaderTemplate>
                <DataTemplate>
                    <Grid Background="Transparent">
                        <StackPanel VerticalAlignment="Center" Orientation="Vertical">
                            <Border CornerRadius="36" Height="72" Width="72" BorderThickness="2" BorderBrush="{Binding Data.BackgroundBrush}">
                                <Border CornerRadius="36" Height="64" Width="64" BorderThickness="2" BorderBrush="Transparent">
                                    <Image HorizontalAlignment="Center" VerticalAlignment="Center"
                                           Width="55"
                                           Height="55"
                                           Source="{Binding Data.ImageSource}" />
                                </Border>
                            </Border>
                            <TextBlock HorizontalAlignment="Center"
                                       VerticalAlignment="Center"
                                       FontSize="15"
                                       Text="{Binding Data.Name}"/>
                        </StackPanel>
                    </Grid>
                </DataTemplate>
            </syncfusion:SfScheduler.ResourceHeaderTemplate>
            <syncfusion:SfScheduler.ResourceMapping>
                <syncfusion:ResourceMapping
                    Id="ID"
                    Name="Name"
                    Background="BackgroundBrush"
                    Foreground="ForegroundBrush"/>
            </syncfusion:SfScheduler.ResourceMapping>
            <syncfusion:SfScheduler.AppointmentMapping>
                <syncfusion:AppointmentMapping
                    Subject="EventName"
                    StartTime="From"
                    EndTime="To"
                    AppointmentBackground="Color"
                    Foreground="ForegroundColor"
                    ResourceIdCollection="Resources"
                    IsAllDay="IsAllDay"
                    RecurrenceExceptionDates="RecurrenceExceptions"
                    RecurrenceRule="RecurrenceRule"
                    RecurrenceId="RecurrenceId"/>
            </syncfusion:SfScheduler.AppointmentMapping>
            <syncfusion:SfScheduler.TimelineViewSettings>
                <syncfusion:TimelineViewSettings MinimumAppointmentDuration="0:30:0"
                                                 RowAutoHeight="True"
                                                 RowMinHeight="100" />
            </syncfusion:SfScheduler.TimelineViewSettings>
            <interactivity:Interaction.Behaviors>
                <local:ResourceViewBehavior/>
            </interactivity:Interaction.Behaviors>
        </syncfusion:SfScheduler>
    </Grid>
</UserControl>

```
