Skip to content

This repository contains sample to create a roster Scheduler view in WPF

Notifications You must be signed in to change notification settings

SyncfusionExamples/Create-a-roster-scheduler-view-in-wpf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Create a Roster Scheduler View in WPF

You can create a roster schedule view using SfScheduler in WPF. A roster schedule is a schedule that provides information about a list of employees and associated information for a given time period.

Creating a roster scheduler

Step 1: Following the getting started UG documentation, create a WPF application and then add SfScheduler control in it.

Step 2: Make the following property changes in the add instance of SfScheduler:

Step 3: Customize the appearance of the appointment using AppointmentTemplate, as explained in the following code example.

Step 4: Make the following property changes in TimelineViewSettings,

        <syncfusion:SfScheduler 
            ViewType="TimelineMonth" 
            ResourceGroupType="Resource">
            <syncfusion:SfScheduler.TimelineViewSettings>
                <syncfusion:TimelineViewSettings>
                    <syncfusion:TimelineViewSettings.AppointmentTemplate>
                        <DataTemplate>
                            <Grid>
                                <Label Foreground="Black" FontWeight="Bold" Content="{Binding Subject}" Grid.Row="0" HorizontalContentAlignment="Center" VerticalContentAlignment="Top"/>
                                <Border Background="{Binding AppointmentBackground}" CornerRadius="5" Height="10" Width="10" HorizontalAlignment="Center" VerticalAlignment="Center" />
                            </Grid>
                        </DataTemplate>
                    </syncfusion:TimelineViewSettings.AppointmentTemplate>
                </syncfusion:TimelineViewSettings>
            </syncfusion:SfScheduler.TimelineViewSettings>
        </syncfusion:SfScheduler>
            scheduler.TimelineViewSettings.ViewHeaderDateFormat = "dd";
            scheduler.TimelineViewSettings.VisibleResourceCount = 5;

Output

RosterSchedulerView

Releases

No releases published

Packages

No packages published

Languages