Articles in this section
Category / Section

How to load Scheduler (Calendar) within Accordion in WPF

1 min read

In WPF, render the SfScheduler within the SfAccordion control.

XAML

SfScheduler control is added in the ContentTemplate of the Accordion.

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="0.1*"/>
        <RowDefinition Height="*"/>
    </Grid.RowDefinitions>
    <accordion:SfAccordion x:Name="SfAccordion" Grid.Row="1" HorizontalAlignment="Center"  VerticalAlignment="Center" Width="500" Height="500" SelectionMode="ZeroOrMore">
        <accordion:SfAccordionItem Header="Header"/>
        <accordion:SfAccordion.HeaderTemplate>
            <DataTemplate>
                <Grid>
                    <TextBlock Text="Click to view scheduler" Foreground="Black"/>
                </Grid>
            </DataTemplate>
        </accordion:SfAccordion.HeaderTemplate>
        <accordion:SfAccordion.ContentTemplate>
            <DataTemplate>
                <Grid>
                    <syncfusion:SfScheduler/>
                </Grid>
            </DataTemplate>
        </accordion:SfAccordion.ContentTemplate>
    </accordion:SfAccordion>
</Grid>

View sample in GitHub

SfScheduler inside Accordion

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied