# scheduler-heatmap

> Scheduler month view colors date cells by activity intensity with a color gradient legend.

**Framework:** maui  **Component:** Scheduler  **Variant:** heatmap

## 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/maui/scheduler-heatmap.json
```

**Install Package(s)**

```bash
dotnet add package Syncfusion.Maui.Scheduler
```

**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-heatmap/Scheduler.xaml

```xaml
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:model="clr-namespace:MAUI.Controls.Scheduler.HeatMap"
             xmlns:schedule="clr-namespace:Syncfusion.Maui.Scheduler;assembly=Syncfusion.Maui.Scheduler"
             x:Class="MAUI.Controls.Scheduler.HeatMap.HeatMapPage"
             x:DataType="model:HeatMapViewModel"
             Title="Scheduler - HeatMap">
    <Grid RowDefinitions="0.8*,0.2*" Padding="8">
        <Grid.Resources>
            <model:DateToColorConverter x:Key="dateToColorConverter" />
            <model:BackgroundToTextColorConverter x:Key="backgroundToTextColorConverter" />
        </Grid.Resources>
        <schedule:SfScheduler x:Name="Scheduler" View="Month" DisplayDate="{Binding DisplayDate}"
                              MinimumDateTime="{Binding MinimumDateTime}" MaximumDateTime="{Binding MaximumDateTime}"
                              AllowAppointmentDrag="False" ShowBusyIndicator="True" CellBorderBrush="Transparent">
            <schedule:SfScheduler.MonthView>
                <schedule:SchedulerMonthView AppointmentDisplayMode="None" ShowLeadingAndTrailingDates="False">
                    <schedule:SchedulerMonthView.CellTemplate>
                        <DataTemplate x:DataType="schedule:SchedulerMonthCellDetails">
                            <Grid x:Name="cellGrid" Background="{Binding DateTime, Converter={StaticResource dateToColorConverter}}" Margin="0.25">
                                <Label Text="{Binding DateTime.Day}" HorizontalTextAlignment="Center" VerticalTextAlignment="Center">
                                    <Label.TextColor>
                                        <Binding x:DataType="Grid" Source="{Reference cellGrid}" Path="Background" Converter="{StaticResource backgroundToTextColorConverter}" />
                                    </Label.TextColor>
                                </Label>
                            </Grid>
                        </DataTemplate>
                    </schedule:SchedulerMonthView.CellTemplate>
                </schedule:SchedulerMonthView>
            </schedule:SfScheduler.MonthView>
            <schedule:SfScheduler.Behaviors><model:HeatMapBehavior /></schedule:SfScheduler.Behaviors>
        </schedule:SfScheduler>
        <Grid Grid.Row="1" ColumnDefinitions="0.15*,0.7*,0.15*">
            <Grid Grid.Column="1" HorizontalOptions="Fill" RowDefinitions="0.4*,0.2*,0.4*">
                <Label Text="Less" HorizontalTextAlignment="Start" VerticalTextAlignment="End" Grid.Row="0" />
                <Label Text="More" HorizontalTextAlignment="End" VerticalTextAlignment="End" Grid.Row="0" />
                <RoundRectangle Grid.Row="1" CornerRadius="2">
                    <RoundRectangle.Fill>
                        <LinearGradientBrush EndPoint="1,0">
                            <GradientStop Color="#EEEEEE" Offset="0"/><GradientStop Color="#C6E48B" Offset="0.3"/>
                            <GradientStop Color="#7BC96F" Offset="0.6"/><GradientStop Color="#239A3B" Offset="0.8"/>
                            <GradientStop Color="#196127" Offset="1"/>
                        </LinearGradientBrush>
                    </RoundRectangle.Fill>
                </RoundRectangle>
            </Grid>
        </Grid>
    </Grid>
</ContentPage>

```

### src/components/scheduler-heatmap/Scheduler.xaml.cs

```cs
namespace MAUI.Controls.Scheduler.HeatMap
{
    public partial class HeatMapPage : ContentPage
    {
        public HeatMapPage()
        {
            InitializeComponent();
            BindingContext = new HeatMapViewModel();
        }
    }
}

```
