# scheduler-load-on-demand

> SfSchedule with lazy-loading appointments from a data source as user navigates dates.

**Framework:** wpf  **Component:** Scheduler  **Variant:** load-on-demand

## 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-load-on-demand.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-load-on-demand/Scheduler.xaml

```xaml
<UserControl x:Class="syncfusion.schedulerdemos.wpf.LoadOnDemand.Scheduler"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
        xmlns:local="clr-namespace:syncfusion.schedulerdemos.wpf" Unloaded="OnSampleUnloaded">

    <Grid>
        <Grid.DataContext>
            <local:LoadOnDemandViewModel/>
        </Grid.DataContext>
        <syncfusion:SfScheduler x:Name="Schedule" BorderThickness="0"
                                ItemsSource="{Binding Events}"
                                ShowBusyIndicator="{Binding ShowBusyIndicator}"
                                LoadOnDemandCommand="{Binding LoadOnDemandCommand}"
                                ViewType="Month"
                                AllowedViewTypes="Month,Day,Week,WorkWeek" >
            <syncfusion:SfScheduler.AppointmentMapping>
                <syncfusion:AppointmentMapping
                Subject="EventName"
                StartTime="From"
                EndTime="To"
                AppointmentBackground="Color"
                Foreground="ForegroundColor"
                IsAllDay="IsAllDay"
                StartTimeZone="StartTimeZone"
                EndTimeZone="EndTimeZone"
                RecurrenceExceptionDates="RecurrenceExceptions"
                RecurrenceRule="RecurrenceRule"
                RecurrenceId="RecurrenceId"/>
            </syncfusion:SfScheduler.AppointmentMapping>
            <syncfusion:SfScheduler.MonthViewSettings>
                <syncfusion:MonthViewSettings AppointmentDisplayMode="Appointment"
                                              AppointmentDisplayCount="1"/>
            </syncfusion:SfScheduler.MonthViewSettings>
        </syncfusion:SfScheduler>
    </Grid>
</UserControl>

```
