Syncfusion AI Assistant

How can I help you?

Notice: After Volume 3 2025 (Mid of Sep 2025), feature enhancements for this control will no longer be available in the Syncfusion® package. Please switch to the Syncfusion® Toolkit for .NET MAUI for continued support. For a smooth transition refer this migration document.

Getting Started with MAUI Accordion

31 Mar 202624 minutes to read

This section guides you through setting up and configuring a Accordion in your .NET MAUI application. Follow the steps below to add a basic Accordion to your project.

To quickly get started with the .NET MAUI Accordion, watch this video:

Prerequisites

Before proceeding, ensure the following are set up:

  1. Install .NET 9 SDK or later is installed.
  2. Set up a .NET MAUI environment with Visual Studio 2026 (v18.0.0 or later).

Step 1: Create a new .NET MAUI Project

  1. Go to File > New > Project and choose the .NET MAUI App template.
  2. Name the project and choose a location. Then, click Next.
  3. Select the .NET framework version and click Create.

Step 2: Install the Syncfusion® MAUI Expander NuGet Package

  1. In Solution Explorer, right-click the project and choose Manage NuGet Packages.
  2. Search for Syncfusion.Maui.Expander and install the latest version.
  3. Ensure the necessary dependencies are installed correctly, and the project is restored.

Step 3: Register the handler

Syncfusion.Maui.Core NuGet is a dependent package for all Syncfusion® controls of .NET MAUI. In the MauiProgram.cs file, register the handler for Syncfusion® core.

  • C#
  • using Microsoft.Maui;
    using Microsoft.Maui.Hosting;
    using Microsoft.Maui.Controls.Compatibility;
    using Microsoft.Maui.Controls.Hosting;
    using Microsoft.Maui.Controls.Xaml;
    using Syncfusion.Maui.Core.Hosting;
    
    namespace GettingStarted
    {
        public class MauiProgram 
        {
            public static MauiApp CreateMauiApp()
            {
                var builder = MauiApp.CreateBuilder();
                builder
                    .UseMauiApp<App>()
                    .ConfigureFonts(fonts =>
                    {
                        fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
                    });
    
                builder.ConfigureSyncfusionCore();
                return builder.Build();
            }
        }
    }

    Step 4: Add a Basic Accordion

    1. To initialize the control, import the Syncfusion.Maui.Accordion namespace into your code.
    2. Initialize SfAccordion.
    <ContentPage   
        . . .
        xmlns:syncfusion="clr-namespace:Syncfusion.Maui.Accordion;assembly=Syncfusion.Maui.Expander">
    
        <syncfusion:SfAccordion />
    </ContentPage>
    using Syncfusion.Maui.Accordion;
    . . .
    public partial class MainPage : ContentPage
    {
        public MainPage()
        {
            InitializeComponent();
            SfAccordion accordion = new SfAccordion();
        }
    }

    Prerequisites

    Before proceeding, ensure the following are set up:

    1. Install .NET 8 SDK or later is installed.
    2. Set up a .NET MAUI environment with Visual Studio Code.
    3. Ensure that the .NET MAUI extension is installed and configured as described here.

    Step 1: Create a new .NET MAUI Project

    1. Open the command palette by pressing Ctrl+Shift+P and type .NET:New Project and enter.
    2. Choose the .NET MAUI App template.
    3. Select the project location, type the project name and press Enter.
    4. Then choose Create project.

    Step 2: Install the Syncfusion® MAUI Expander NuGet Package

    1. Press Ctrl + ` (backtick) to open the integrated terminal in Visual Studio Code.
    2. Ensure you’re in the project root directory where your .csproj file is located.
    3. Run the command dotnet add package Syncfusion.Maui.Expander to install the Syncfusion® .NET MAUI Expander package.
    4. To ensure all dependencies are installed, run dotnet restore.

    Step 3: Register the handler

    Syncfusion.Maui.Core NuGet is a dependent package for all Syncfusion® controls of .NET MAUI. In the MauiProgram.cs file, register the handler for Syncfusion® core.

  • C#
  • using Microsoft.Maui;
    using Microsoft.Maui.Hosting;
    using Microsoft.Maui.Controls.Compatibility;
    using Microsoft.Maui.Controls.Hosting;
    using Microsoft.Maui.Controls.Xaml;
    using Syncfusion.Maui.Core.Hosting;
    
    namespace GettingStarted
    {
        public class MauiProgram 
        {
            public static MauiApp CreateMauiApp()
            {
                var builder = MauiApp.CreateBuilder();
                builder
                    .UseMauiApp<App>()
                    .ConfigureFonts(fonts =>
                    {
                        fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
                    });
    
                builder.ConfigureSyncfusionCore();
                return builder.Build();
            }
        }
    }

    Step 4: Add a Basic Accordion

    1. To initialize the control, import the Syncfusion.Maui.Accordion namespace into your code.
    2. Initialize SfAccordion.
    <ContentPage   
        . . .
          xmlns:syncfusion="clr-namespace:Syncfusion.Maui.Accordion;assembly=Syncfusion.Maui.Expander">
        <syncfusion:SfAccordion />
    </ContentPage>
    using Syncfusion.Maui.Accordion;
    . . .
    public partial class MainPage : ContentPage
    {
        public MainPage()
        {
            InitializeComponent();
            SfAccordion accordion = new SfAccordion();
        }
    }

    Prerequisites

    Before proceeding, ensure the following are set up:

    1. Ensure you have the latest version of JetBrains Rider.
    2. Install .NET 8 SDK or later is installed.
    3. Make sure the MAUI workloads are installed and configured as described here.

    Step 1: Create a new .NET MAUI Project

    1. Go to File > New Solution, Select .NET (C#) and choose the .NET MAUI App template.
    2. Enter the Project Name, Solution Name, and Location.
    3. Select the .NET framework version and click Create.

    Step 2: Install the Syncfusion® MAUI Expander NuGet Package

    1. In Solution Explorer, right-click the project and choose Manage NuGet Packages.
    2. Search for Syncfusion.Maui.Expander and install the latest version.
    3. Ensure the necessary dependencies are installed correctly, and the project is restored. If not, Open the Terminal in Rider and manually run: dotnet restore

    Step 3: Register the handler

    Syncfusion.Maui.Core NuGet is a dependent package for all Syncfusion® controls of .NET MAUI. In the MauiProgram.cs file, register the handler for Syncfusion® core.

  • C#
  • using Microsoft.Maui;
    using Microsoft.Maui.Hosting;
    using Microsoft.Maui.Controls.Compatibility;
    using Microsoft.Maui.Controls.Hosting;
    using Microsoft.Maui.Controls.Xaml;
    using Syncfusion.Maui.Core.Hosting;
    
    namespace GettingStarted
    {
        public class MauiProgram 
        {
            public static MauiApp CreateMauiApp()
            {
                var builder = MauiApp.CreateBuilder();
                builder
                    .UseMauiApp<App>()
                    .ConfigureFonts(fonts =>
                    {
                        fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
                    });
    
                builder.ConfigureSyncfusionCore();
                return builder.Build();
            }
        }
    }

    Step 4: Add a Basic Accordion

    1. To initialize the control, import the Syncfusion.Maui.Accordion namespace into your code.
    2. Initialize SfAccordion.
    <ContentPage   
        . . .
          xmlns:syncfusion="clr-namespace:Syncfusion.Maui.Accordion;assembly=Syncfusion.Maui.Expander">
        <syncfusion:SfAccordion />
    </ContentPage>
    using Syncfusion.Maui.Accordion;
    . . .
    public partial class MainPage : ContentPage
    {
        public MainPage()
        {
            InitializeComponent();
            SfAccordion accordion = new SfAccordion();
        }
    }

    Step 5: Define the accordion items

    Create the AccordionItem instance that comprise a header & content and add it into Items of SfAccordion.

    In this example, a Grid is loaded in both the header and content of accordion items.

    NOTE

    When loading Label as direct children of Header or Content of AccordionItem, then it will lead to an exception. So, load Label inside Grid to overcome the crash.

    <syncfusion:SfAccordion x:Name="accordion">
        <syncfusion:SfAccordion.Items>
            <syncfusion:AccordionItem>
                <syncfusion:AccordionItem.Header>
                    <Grid  HeightRequest="48">
                        <Label Text="Robin Rane" Margin="16,14,0,14" CharacterSpacing="0.25" FontFamily="Roboto-Regular" FontSize="14" />
                    </Grid>
                </syncfusion:AccordionItem.Header>
                <syncfusion:AccordionItem.Content>
                    <Grid ColumnSpacing="10" RowSpacing="2" BackgroundColor="#f4f4f4">
                        <Grid Margin="16,6,0,0" RowDefinitions="25,25,25,25,70,Auto" ColumnDefinitions="100,100,*">
                            <Grid.Resources>
                                <Style TargetType="Label">
                                    <Setter Property="FontFamily" Value="Roboto-Regular" />
                                </Style>
                            </Grid.Resources>
                            <Border Grid.RowSpan="4" Grid.Row="0" Grid.Column="0" Padding="0" Margin="0,0,0,7">
                                <Image Source="emp_01.png" />
                            </Border>
                            <Label Text="Position" Grid.Row="0" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="Chairman" Grid.Row="0" Grid.Column="2" />
                            <Label Text="Organization " Grid.Row="1" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="ABC Inc." Grid.Row="1" Grid.Column="2" />
                            <Label Text="Date Of Birth " Grid.Row="2" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="09/17/1973" Grid.Row="2" Grid.Column="2" />
                            <Label Text="Location " Grid.Row="3" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="Boston" Grid.Row="3" Grid.Column="2" />
                            <Label Padding="0,10,0,10" Grid.Row="4" Grid.ColumnSpan="3" LineBreakMode="WordWrap" FontSize="14" CharacterSpacing="0.25" VerticalTextAlignment="Center" 
                                   Text="Robin Rane, Chairman of ABC Inc., leads with dedication and vision.Under his guidance, the company thrives and continues to make a significant impact in the industry." />
                            <StackLayout Grid.Row="5" Orientation="Horizontal" Margin="0,0,0,12">
                                <Label Text="&#xe700;" FontSize="16" Margin="0,2,2,2" FontFamily='{OnPlatform Android=AccordionFontIcons.ttf#,WinUI=AccordionFontIcons.ttf#AccordionFontIcons,MacCatalyst=AccordionFontIcons,iOS=AccordionFontIcons}' VerticalOptions="Center" VerticalTextAlignment="Center" />
                                <Label Text="(617) 555-1234" Grid.Column="1" VerticalOptions="Center" CharacterSpacing="0.25" FontSize="14" />
                            </StackLayout>
                        </Grid>
                    </Grid>
                </syncfusion:AccordionItem.Content>
            </syncfusion:AccordionItem>
            ..........................
        </syncfusion:SfAccordion.Items>
    </syncfusion:SfAccordion>
    public partial class MainPage : ContentPage
    {
        public MainPage()
        {
            InitializeComponent();
    
            var accordion = new SfAccordion();
            var accordionItems = new AccordionItem
            {
                Header = CreateHeader(),
                Content = CreateContent()
            };
    
            accordion.Items.Add(accordionItems);
            this.Content = accordion;
        }
    
        private View CreateHeader()
        {
            var headerGrid = new Grid
            {
                HeightRequest = 48
            };
    
            headerGrid.Children.Add(new Label
            {
                Text = "Robin Rane",
                Margin = new Thickness(16, 14, 0, 14),
                CharacterSpacing = 0.25,
                FontFamily = "Roboto-Regular",
                FontSize = 14
            });
    
            return headerGrid;
        }
    
        private View CreateContent()
        {
            var outerGrid = new Grid
            {
                BackgroundColor = Color.FromArgb("#f4f4f4"),
                ColumnSpacing = 10,
                RowSpacing = 2
            };
    
            var innerGrid = new Grid
            {
                Margin = new Thickness(16, 6, 0, 0),
                RowDefinitions =
                {
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 70 },
                    new RowDefinition { Height = GridLength.Auto }
                },
                ColumnDefinitions =
                {
                    new ColumnDefinition { Width = 100 },
                    new ColumnDefinition { Width = 100 },
                    new ColumnDefinition { Width = GridLength.Star }
                }
            };
    
            // Image
            var imageBorder = new Border
            {
                Margin = new Thickness(0, 0, 0, 7),
                Content = new Image { Source = "emp_01.png" }
            };
    
            Grid.SetRow(imageBorder, 0);
            Grid.SetColumn(imageBorder, 0);
            Grid.SetRowSpan(imageBorder, 4);
            innerGrid.Children.Add(imageBorder);
    
            AddText(innerGrid, "Position", 0, 1, true);
            AddText(innerGrid, "Chairman", 0, 2);
    
            AddText(innerGrid, "Organization", 1, 1, true);
            AddText(innerGrid, "ABC Inc.", 1, 2);
    
            AddText(innerGrid, "Date Of Birth", 2, 1, true);
            AddText(innerGrid, "09/17/1973", 2, 2);
    
            AddText(innerGrid, "Location", 3, 1, true);
            AddText(innerGrid, "Boston", 3, 2);
    
            // Description
            var description = new Label
            {
                Text = "Robin Rane, Chairman of ABC Inc., leads with dedication and vision. "Under his guidance, the company thrives and continues to make a significant impact in the industry.",
                Padding = new Thickness(0, 10),
                LineBreakMode = LineBreakMode.WordWrap,
                VerticalTextAlignment = TextAlignment.Center,
                FontFamily = "Roboto-Regular",
                FontSize = 14,
                CharacterSpacing = 0.25
            };
    
            Grid.SetRow(description, 4);
            Grid.SetColumnSpan(description, 3);
            innerGrid.Children.Add(description);
    
            // Phone row
            var phoneStack = new StackLayout
            {
                Orientation = StackOrientation.Horizontal,
                Margin = new Thickness(0, 0, 0, 12),
                Children =
                {
                    new Label
                    {
                        Text = "\ue700",
                        FontSize = 16,
                        FontFamily = DeviceInfo.Platform == DevicePlatform.Android ? "AccordionFontIcons.ttf#" : "AccordionFontIcons",
                        VerticalTextAlignment = TextAlignment.Center
                    },
                    new Label
                    {
                        Text = "(617) 555-1234",
                        FontSize = 14,
                        CharacterSpacing = 0.25,
                        VerticalTextAlignment = TextAlignment.Center
                    }
                }
            };
    
            Grid.SetRow(phoneStack, 5);
            Grid.SetColumnSpan(phoneStack, 3);
            innerGrid.Children.Add(phoneStack);
            outerGrid.Children.Add(innerGrid);
            return outerGrid;
        }
    
        private void AddText(Grid grid, string text, int row, int column, bool withMargin = false)
        {
            var label = new Label
            {
                Text = text,
                FontFamily = "Roboto-Regular",
                Margin = withMargin ? new Thickness(6, 0, 0, 0) : Thickness.Zero
            };
    
            Grid.SetRow(label, row);
            Grid.SetColumn(label, column);
            grid.Children.Add(label);
        }
    }

    Step 6: Running the Application

    Press F5 to build and run the application. Once compiled, the Accordion will be displayed with the data provided.

    Here is the result of the previous codes,

    Defining the Accordion items

    You can download accordion sample for .NET MAUI here.

    NOTE

    When adding the template control inside the Grid with a height set to Auto, the child element will not receive the height changes at runtime. Since the SfAccordion is a template-based control, the default height value cannot be determined. Therefore, it is recommended to provide the HorizontalOptions and VerticalOptions as FillAndExpand options for the control.

    Animation duration

    The SfAccordion allows you to customize the expanding and collapsing duration of accordion items by using the AnimationDuration property. By default, the animation duration is set to 200 milliseconds.

    <syncfusion:SfAccordion x:Name="accordion"
                            AnimationDuration="150">
        <syncfusion:SfAccordion.Items>
            <syncfusion:AccordionItem>
                <syncfusion:AccordionItem.Header>
                    <Grid  HeightRequest="48">
                        <Label Text="Robin Rane" Margin="16,14,0,14" CharacterSpacing="0.25" FontFamily="Roboto-Regular" FontSize="14" />
                    </Grid>
                </syncfusion:AccordionItem.Header>
                <syncfusion:AccordionItem.Content>
                    <Grid ColumnSpacing="10" RowSpacing="2" BackgroundColor="#f4f4f4">
                        <Grid Margin="16,6,0,0" RowDefinitions="25,25,25,25,70,Auto" ColumnDefinitions="100,100,*">
                            <Grid.Resources>
                                <Style TargetType="Label">
                                    <Setter Property="FontFamily" Value="Roboto-Regular" />
                                </Style>
                            </Grid.Resources>
                            <Border Grid.RowSpan="4" Grid.Row="0" Grid.Column="0" Padding="0" Margin="0,0,0,7">
                                <Image Source="emp_01.png" />
                            </Border>
                            <Label Text="Position" Grid.Row="0" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="Chairman" Grid.Row="0" Grid.Column="2" />
                            <Label Text="Organization " Grid.Row="1" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="ABC Inc." Grid.Row="1" Grid.Column="2" />
                            <Label Text="Date Of Birth " Grid.Row="2" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="09/17/1973" Grid.Row="2" Grid.Column="2" />
                            <Label Text="Location " Grid.Row="3" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="Boston" Grid.Row="3" Grid.Column="2" />
                            <Label Padding="0,10,0,10" Grid.Row="4" Grid.ColumnSpan="3" LineBreakMode="WordWrap" FontSize="14" CharacterSpacing="0.25" VerticalTextAlignment="Center" 
                                   Text="Robin Rane, Chairman of ABC Inc., leads with dedication and vision.Under his guidance, the company thrives and continues to make a significant impact in the industry." />
                            <StackLayout Grid.Row="5" Orientation="Horizontal" Margin="0,0,0,12">
                                <Label Text="&#xe700;" FontSize="16" Margin="0,2,2,2" FontFamily='{OnPlatform Android=AccordionFontIcons.ttf#,WinUI=AccordionFontIcons.ttf#AccordionFontIcons,MacCatalyst=AccordionFontIcons,iOS=AccordionFontIcons}' VerticalOptions="Center" VerticalTextAlignment="Center" />
                                <Label Text="(617) 555-1234" Grid.Column="1" VerticalOptions="Center" CharacterSpacing="0.25" FontSize="14" />
                            </StackLayout>
                        </Grid>
                    </Grid>
                </syncfusion:AccordionItem.Content>
            </syncfusion:AccordionItem>
            ..........................
        </syncfusion:SfAccordion.Items>
    </syncfusion:SfAccordion>
    public partial class MainPage : ContentPage
    {
        public MainPage()
        {
            InitializeComponent();
    
            var accordion = new SfAccordion();
            accordion.AnimationDuration = 150;
            var accordionItems = new AccordionItem
            {
                Header = CreateHeader(),
                Content = CreateContent()
            };
    
            accordion.Items.Add(accordionItems);
            this.Content = accordion;
        }
    
        private View CreateHeader()
        {
            var headerGrid = new Grid
            {
                HeightRequest = 48
            };
    
            headerGrid.Children.Add(new Label
            {
                Text = "Robin Rane",
                Margin = new Thickness(16, 14, 0, 14),
                CharacterSpacing = 0.25,
                FontFamily = "Roboto-Regular",
                FontSize = 14
            });
    
            return headerGrid;
        }
    
        private View CreateContent()
        {
            var outerGrid = new Grid
            {
                BackgroundColor = Color.FromArgb("#f4f4f4"),
                ColumnSpacing = 10,
                RowSpacing = 2
            };
    
            var innerGrid = new Grid
            {
                Margin = new Thickness(16, 6, 0, 0),
                RowDefinitions =
                {
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 70 },
                    new RowDefinition { Height = GridLength.Auto }
                },
                ColumnDefinitions =
                {
                    new ColumnDefinition { Width = 100 },
                    new ColumnDefinition { Width = 100 },
                    new ColumnDefinition { Width = GridLength.Star }
                }
            };
    
            // Image
            var imageBorder = new Border
            {
                Margin = new Thickness(0, 0, 0, 7),
                Content = new Image { Source = "emp_01.png" }
            };
    
            Grid.SetRow(imageBorder, 0);
            Grid.SetColumn(imageBorder, 0);
            Grid.SetRowSpan(imageBorder, 4);
            innerGrid.Children.Add(imageBorder);
    
            AddText(innerGrid, "Position", 0, 1, true);
            AddText(innerGrid, "Chairman", 0, 2);
    
            AddText(innerGrid, "Organization", 1, 1, true);
            AddText(innerGrid, "ABC Inc.", 1, 2);
    
            AddText(innerGrid, "Date Of Birth", 2, 1, true);
            AddText(innerGrid, "09/17/1973", 2, 2);
    
            AddText(innerGrid, "Location", 3, 1, true);
            AddText(innerGrid, "Boston", 3, 2);
    
            // Description
            var description = new Label
            {
                Text = "Robin Rane, Chairman of ABC Inc., leads with dedication and vision. "Under his guidance, the company thrives and continues to make a significant impact in the industry.",
                Padding = new Thickness(0, 10),
                LineBreakMode = LineBreakMode.WordWrap,
                VerticalTextAlignment = TextAlignment.Center,
                FontFamily = "Roboto-Regular",
                FontSize = 14,
                CharacterSpacing = 0.25
            };
    
            Grid.SetRow(description, 4);
            Grid.SetColumnSpan(description, 3);
            innerGrid.Children.Add(description);
    
            // Phone row
            var phoneStack = new StackLayout
            {
                Orientation = StackOrientation.Horizontal,
                Margin = new Thickness(0, 0, 0, 12),
                Children =
                {
                    new Label
                    {
                        Text = "\ue700",
                        FontSize = 16,
                        FontFamily = DeviceInfo.Platform == DevicePlatform.Android ? "AccordionFontIcons.ttf#" : "AccordionFontIcons",
                        VerticalTextAlignment = TextAlignment.Center
                    },
                    new Label
                    {
                        Text = "(617) 555-1234",
                        FontSize = 14,
                        CharacterSpacing = 0.25,
                        VerticalTextAlignment = TextAlignment.Center
                    }
                }
            };
    
            Grid.SetRow(phoneStack, 5);
            Grid.SetColumnSpan(phoneStack, 3);
            innerGrid.Children.Add(phoneStack);
            outerGrid.Children.Add(innerGrid);
            return outerGrid;
        }
    
        private void AddText(Grid grid, string text, int row, int column, bool withMargin = false)
        {
            var label = new Label
            {
                Text = text,
                FontFamily = "Roboto-Regular",
                Margin = withMargin ? new Thickness(6, 0, 0, 0) : Thickness.Zero
            };
    
            Grid.SetRow(label, row);
            Grid.SetColumn(label, column);
            grid.Children.Add(label);
        }
    }

    Animation easing

    You can customize the rate of change of a parameter over time or the animation style of an accordion item by using the AnimationEasing property. By default, the animation easing is set to Linear.

    <syncfusion:SfAccordion x:Name="accordion"
                            AnimationEasing="SinOut">
        <syncfusion:SfAccordion.Items>
            <syncfusion:AccordionItem>
                <syncfusion:AccordionItem.Header>
                    <Grid  HeightRequest="48">
                        <Label Text="Robin Rane" Margin="16,14,0,14" CharacterSpacing="0.25" FontFamily="Roboto-Regular" FontSize="14" />
                    </Grid>
                </syncfusion:AccordionItem.Header>
                <syncfusion:AccordionItem.Content>
                    <Grid ColumnSpacing="10" RowSpacing="2" BackgroundColor="#f4f4f4">
                        <Grid Margin="16,6,0,0" RowDefinitions="25,25,25,25,70,Auto" ColumnDefinitions="100,100,*">
                            <Grid.Resources>
                                <Style TargetType="Label">
                                    <Setter Property="FontFamily" Value="Roboto-Regular" />
                                </Style>
                            </Grid.Resources>
                            <Border Grid.RowSpan="4" Grid.Row="0" Grid.Column="0" Padding="0" Margin="0,0,0,7">
                                <Image Source="emp_01.png" />
                            </Border>
                            <Label Text="Position" Grid.Row="0" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="Chairman" Grid.Row="0" Grid.Column="2" />
                            <Label Text="Organization " Grid.Row="1" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="ABC Inc." Grid.Row="1" Grid.Column="2" />
                            <Label Text="Date Of Birth " Grid.Row="2" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="09/17/1973" Grid.Row="2" Grid.Column="2" />
                            <Label Text="Location " Grid.Row="3" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="Boston" Grid.Row="3" Grid.Column="2" />
                            <Label Padding="0,10,0,10" Grid.Row="4" Grid.ColumnSpan="3" LineBreakMode="WordWrap" FontSize="14" CharacterSpacing="0.25" VerticalTextAlignment="Center" 
                                   Text="Robin Rane, Chairman of ABC Inc., leads with dedication and vision.Under his guidance, the company thrives and continues to make a significant impact in the industry." />
                            <StackLayout Grid.Row="5" Orientation="Horizontal" Margin="0,0,0,12">
                                <Label Text="&#xe700;" FontSize="16" Margin="0,2,2,2" FontFamily='{OnPlatform Android=AccordionFontIcons.ttf#,WinUI=AccordionFontIcons.ttf#AccordionFontIcons,MacCatalyst=AccordionFontIcons,iOS=AccordionFontIcons}' VerticalOptions="Center" VerticalTextAlignment="Center" />
                                <Label Text="(617) 555-1234" Grid.Column="1" VerticalOptions="Center" CharacterSpacing="0.25" FontSize="14" />
                            </StackLayout>
                        </Grid>
                    </Grid>
                </syncfusion:AccordionItem.Content>
            </syncfusion:AccordionItem>
            ..........................
        </syncfusion:SfAccordion.Items>
    </syncfusion:SfAccordion>
    public partial class MainPage : ContentPage
    {
        public MainPage()
        {
            InitializeComponent();
    
            var accordion = new SfAccordion();
            accordion.AnimationEasing = Syncfusion.Maui.Expander.ExpanderAnimationEasing.SinOut;
            var accordionItems = new AccordionItem
            {
                Header = CreateHeader(),
                Content = CreateContent()
            };
    
            accordion.Items.Add(accordionItems);
            this.Content = accordion;
        }
    
        private View CreateHeader()
        {
            var headerGrid = new Grid
            {
                HeightRequest = 48
            };
    
            headerGrid.Children.Add(new Label
            {
                Text = "Robin Rane",
                Margin = new Thickness(16, 14, 0, 14),
                CharacterSpacing = 0.25,
                FontFamily = "Roboto-Regular",
                FontSize = 14
            });
    
            return headerGrid;
        }
    
        private View CreateContent()
        {
            var outerGrid = new Grid
            {
                BackgroundColor = Color.FromArgb("#f4f4f4"),
                ColumnSpacing = 10,
                RowSpacing = 2
            };
    
            var innerGrid = new Grid
            {
                Margin = new Thickness(16, 6, 0, 0),
                RowDefinitions =
                {
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 70 },
                    new RowDefinition { Height = GridLength.Auto }
                },
                ColumnDefinitions =
                {
                    new ColumnDefinition { Width = 100 },
                    new ColumnDefinition { Width = 100 },
                    new ColumnDefinition { Width = GridLength.Star }
                }
            };
    
            // Image
            var imageBorder = new Border
            {
                Margin = new Thickness(0, 0, 0, 7),
                Content = new Image { Source = "emp_01.png" }
            };
    
            Grid.SetRow(imageBorder, 0);
            Grid.SetColumn(imageBorder, 0);
            Grid.SetRowSpan(imageBorder, 4);
            innerGrid.Children.Add(imageBorder);
    
            AddText(innerGrid, "Position", 0, 1, true);
            AddText(innerGrid, "Chairman", 0, 2);
    
            AddText(innerGrid, "Organization", 1, 1, true);
            AddText(innerGrid, "ABC Inc.", 1, 2);
    
            AddText(innerGrid, "Date Of Birth", 2, 1, true);
            AddText(innerGrid, "09/17/1973", 2, 2);
    
            AddText(innerGrid, "Location", 3, 1, true);
            AddText(innerGrid, "Boston", 3, 2);
    
            // Description
            var description = new Label
            {
                Text = "Robin Rane, Chairman of ABC Inc., leads with dedication and vision. "Under his guidance, the company thrives and continues to make a significant impact in the industry.",
                Padding = new Thickness(0, 10),
                LineBreakMode = LineBreakMode.WordWrap,
                VerticalTextAlignment = TextAlignment.Center,
                FontFamily = "Roboto-Regular",
                FontSize = 14,
                CharacterSpacing = 0.25
            };
    
            Grid.SetRow(description, 4);
            Grid.SetColumnSpan(description, 3);
            innerGrid.Children.Add(description);
    
            // Phone row
            var phoneStack = new StackLayout
            {
                Orientation = StackOrientation.Horizontal,
                Margin = new Thickness(0, 0, 0, 12),
                Children =
                {
                    new Label
                    {
                        Text = "\ue700",
                        FontSize = 16,
                        FontFamily = DeviceInfo.Platform == DevicePlatform.Android ? "AccordionFontIcons.ttf#" : "AccordionFontIcons",
                        VerticalTextAlignment = TextAlignment.Center
                    },
                    new Label
                    {
                        Text = "(617) 555-1234",
                        FontSize = 14,
                        CharacterSpacing = 0.25,
                        VerticalTextAlignment = TextAlignment.Center
                    }
                }
            };
    
            Grid.SetRow(phoneStack, 5);
            Grid.SetColumnSpan(phoneStack, 3);
            innerGrid.Children.Add(phoneStack);
            outerGrid.Children.Add(innerGrid);
            return outerGrid;
        }
    
        private void AddText(Grid grid, string text, int row, int column, bool withMargin = false)
        {
            var label = new Label
            {
                Text = text,
                FontFamily = "Roboto-Regular",
                Margin = withMargin ? new Thickness(6, 0, 0, 0) : Thickness.Zero
            };
    
            Grid.SetRow(label, row);
            Grid.SetColumn(label, column);
            grid.Children.Add(label);
        }
    }

    Auto scroll position

    The SfAccordion allows you to customize the scroll position of the expanded accordion item using the AutoScrollPosition property. By default, the auto-scroll position is set to MakeVisible.

    <syncfusion:SfAccordion x:Name="accordion"
                            AutoScrollPosition="Top">
        <syncfusion:SfAccordion.Items>
            <syncfusion:AccordionItem>
                <syncfusion:AccordionItem.Header>
                    <Grid  HeightRequest="48">
                        <Label Text="Robin Rane" Margin="16,14,0,14" CharacterSpacing="0.25" FontFamily="Roboto-Regular" FontSize="14" />
                    </Grid>
                </syncfusion:AccordionItem.Header>
                <syncfusion:AccordionItem.Content>
                    <Grid ColumnSpacing="10" RowSpacing="2" BackgroundColor="#f4f4f4">
                        <Grid Margin="16,6,0,0" RowDefinitions="25,25,25,25,70,Auto" ColumnDefinitions="100,100,*">
                            <Grid.Resources>
                                <Style TargetType="Label">
                                    <Setter Property="FontFamily" Value="Roboto-Regular" />
                                </Style>
                            </Grid.Resources>
                            <Border Grid.RowSpan="4" Grid.Row="0" Grid.Column="0" Padding="0" Margin="0,0,0,7">
                                <Image Source="emp_01.png" />
                            </Border>
                            <Label Text="Position" Grid.Row="0" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="Chairman" Grid.Row="0" Grid.Column="2" />
                            <Label Text="Organization " Grid.Row="1" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="ABC Inc." Grid.Row="1" Grid.Column="2" />
                            <Label Text="Date Of Birth " Grid.Row="2" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="09/17/1973" Grid.Row="2" Grid.Column="2" />
                            <Label Text="Location " Grid.Row="3" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="Boston" Grid.Row="3" Grid.Column="2" />
                            <Label Padding="0,10,0,10" Grid.Row="4" Grid.ColumnSpan="3" LineBreakMode="WordWrap" FontSize="14" CharacterSpacing="0.25" VerticalTextAlignment="Center" 
                                   Text="Robin Rane, Chairman of ABC Inc., leads with dedication and vision.Under his guidance, the company thrives and continues to make a significant impact in the industry." />
                            <StackLayout Grid.Row="5" Orientation="Horizontal" Margin="0,0,0,12">
                                <Label Text="&#xe700;" FontSize="16" Margin="0,2,2,2" FontFamily='{OnPlatform Android=AccordionFontIcons.ttf#,WinUI=AccordionFontIcons.ttf#AccordionFontIcons,MacCatalyst=AccordionFontIcons,iOS=AccordionFontIcons}' VerticalOptions="Center" VerticalTextAlignment="Center" />
                                <Label Text="(617) 555-1234" Grid.Column="1" VerticalOptions="Center" CharacterSpacing="0.25" FontSize="14" />
                            </StackLayout>
                        </Grid>
                    </Grid>
                </syncfusion:AccordionItem.Content>
            </syncfusion:AccordionItem>
            ..........................
        </syncfusion:SfAccordion.Items>
    </syncfusion:SfAccordion>
    public partial class MainPage : ContentPage
    {
        public MainPage()
        {
            InitializeComponent();
    
            var accordion = new SfAccordion();
            accordion.AutoScrollPosition = AccordionAutoScrollPosition.Top;
            var accordionItems = new AccordionItem
            {
                Header = CreateHeader(),
                Content = CreateContent()
            };
    
            accordion.Items.Add(accordionItems);
            this.Content = accordion;
        }
    
        private View CreateHeader()
        {
            var headerGrid = new Grid
            {
                HeightRequest = 48
            };
    
            headerGrid.Children.Add(new Label
            {
                Text = "Robin Rane",
                Margin = new Thickness(16, 14, 0, 14),
                CharacterSpacing = 0.25,
                FontFamily = "Roboto-Regular",
                FontSize = 14
            });
    
            return headerGrid;
        }
    
        private View CreateContent()
        {
            var outerGrid = new Grid
            {
                BackgroundColor = Color.FromArgb("#f4f4f4"),
                ColumnSpacing = 10,
                RowSpacing = 2
            };
    
            var innerGrid = new Grid
            {
                Margin = new Thickness(16, 6, 0, 0),
                RowDefinitions =
                {
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 70 },
                    new RowDefinition { Height = GridLength.Auto }
                },
                ColumnDefinitions =
                {
                    new ColumnDefinition { Width = 100 },
                    new ColumnDefinition { Width = 100 },
                    new ColumnDefinition { Width = GridLength.Star }
                }
            };
    
            // Image
            var imageBorder = new Border
            {
                Margin = new Thickness(0, 0, 0, 7),
                Content = new Image { Source = "emp_01.png" }
            };
    
            Grid.SetRow(imageBorder, 0);
            Grid.SetColumn(imageBorder, 0);
            Grid.SetRowSpan(imageBorder, 4);
            innerGrid.Children.Add(imageBorder);
    
            AddText(innerGrid, "Position", 0, 1, true);
            AddText(innerGrid, "Chairman", 0, 2);
    
            AddText(innerGrid, "Organization", 1, 1, true);
            AddText(innerGrid, "ABC Inc.", 1, 2);
    
            AddText(innerGrid, "Date Of Birth", 2, 1, true);
            AddText(innerGrid, "09/17/1973", 2, 2);
    
            AddText(innerGrid, "Location", 3, 1, true);
            AddText(innerGrid, "Boston", 3, 2);
    
            // Description
            var description = new Label
            {
                Text = "Robin Rane, Chairman of ABC Inc., leads with dedication and vision. "Under his guidance, the company thrives and continues to make a significant impact in the industry.",
                Padding = new Thickness(0, 10),
                LineBreakMode = LineBreakMode.WordWrap,
                VerticalTextAlignment = TextAlignment.Center,
                FontFamily = "Roboto-Regular",
                FontSize = 14,
                CharacterSpacing = 0.25
            };
    
            Grid.SetRow(description, 4);
            Grid.SetColumnSpan(description, 3);
            innerGrid.Children.Add(description);
    
            // Phone row
            var phoneStack = new StackLayout
            {
                Orientation = StackOrientation.Horizontal,
                Margin = new Thickness(0, 0, 0, 12),
                Children =
                {
                    new Label
                    {
                        Text = "\ue700",
                        FontSize = 16,
                        FontFamily = DeviceInfo.Platform == DevicePlatform.Android ? "AccordionFontIcons.ttf#" : "AccordionFontIcons",
                        VerticalTextAlignment = TextAlignment.Center
                    },
                    new Label
                    {
                        Text = "(617) 555-1234",
                        FontSize = 14,
                        CharacterSpacing = 0.25,
                        VerticalTextAlignment = TextAlignment.Center
                    }
                }
            };
    
            Grid.SetRow(phoneStack, 5);
            Grid.SetColumnSpan(phoneStack, 3);
            innerGrid.Children.Add(phoneStack);
            outerGrid.Children.Add(innerGrid);
            return outerGrid;
        }
    
        private void AddText(Grid grid, string text, int row, int column, bool withMargin = false)
        {
            var label = new Label
            {
                Text = text,
                FontFamily = "Roboto-Regular",
                Margin = withMargin ? new Thickness(6, 0, 0, 0) : Thickness.Zero
            };
    
            Grid.SetRow(label, row);
            Grid.SetColumn(label, column);
            grid.Children.Add(label);
        }
    }

    Bring an accordion item into view

    The BringIntoView method is used to bring a specific item into view by scrolling to it programmatically.

    <syncfusion:SfAccordion x:Name="accordion">
        <syncfusion:SfAccordion.Items>
            <syncfusion:AccordionItem>
                <syncfusion:AccordionItem.Header>
                    <Grid  HeightRequest="48">
                        <Label Text="Robin Rane" Margin="16,14,0,14" CharacterSpacing="0.25" FontFamily="Roboto-Regular" FontSize="14" />
                    </Grid>
                </syncfusion:AccordionItem.Header>
                <syncfusion:AccordionItem.Content>
                    <Grid ColumnSpacing="10" RowSpacing="2" BackgroundColor="#f4f4f4">
                        <Grid Margin="16,6,0,0" RowDefinitions="25,25,25,25,70,Auto" ColumnDefinitions="100,100,*">
                            <Grid.Resources>
                                <Style TargetType="Label">
                                    <Setter Property="FontFamily" Value="Roboto-Regular" />
                                </Style>
                            </Grid.Resources>
                            <Border Grid.RowSpan="4" Grid.Row="0" Grid.Column="0" Padding="0" Margin="0,0,0,7">
                                <Image Source="emp_01.png" />
                            </Border>
                            <Label Text="Position" Grid.Row="0" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="Chairman" Grid.Row="0" Grid.Column="2" />
                            <Label Text="Organization " Grid.Row="1" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="ABC Inc." Grid.Row="1" Grid.Column="2" />
                            <Label Text="Date Of Birth " Grid.Row="2" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="09/17/1973" Grid.Row="2" Grid.Column="2" />
                            <Label Text="Location " Grid.Row="3" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="Boston" Grid.Row="3" Grid.Column="2" />
                            <Label Padding="0,10,0,10" Grid.Row="4" Grid.ColumnSpan="3" LineBreakMode="WordWrap" FontSize="14" CharacterSpacing="0.25" VerticalTextAlignment="Center" 
                                   Text="Robin Rane, Chairman of ABC Inc., leads with dedication and vision.Under his guidance, the company thrives and continues to make a significant impact in the industry." />
                            <StackLayout Grid.Row="5" Orientation="Horizontal" Margin="0,0,0,12">
                                <Label Text="&#xe700;" FontSize="16" Margin="0,2,2,2" FontFamily='{OnPlatform Android=AccordionFontIcons.ttf#,WinUI=AccordionFontIcons.ttf#AccordionFontIcons,MacCatalyst=AccordionFontIcons,iOS=AccordionFontIcons}' VerticalOptions="Center" VerticalTextAlignment="Center" />
                                <Label Text="(617) 555-1234" Grid.Column="1" VerticalOptions="Center" CharacterSpacing="0.25" FontSize="14" />
                            </StackLayout>
                        </Grid>
                    </Grid>
                </syncfusion:AccordionItem.Content>
            </syncfusion:AccordionItem>
            ..........................
        </syncfusion:SfAccordion.Items>
    </syncfusion:SfAccordion>
    private void Button_Clicked(object sender, EventArgs e)
    {
        accordion.BringIntoView(accordion.Items[15]);
    }

    Expand mode

    You can expand single or multiple items using the ExpandMode property. By default, the expanded mode is set to Single.

    <syncfusion:SfAccordion x:Name="accordion"
                            ExpandMode="Multiple">
        <syncfusion:SfAccordion.Items>
            <syncfusion:AccordionItem>
                <syncfusion:AccordionItem.Header>
                    <Grid  HeightRequest="48">
                        <Label Text="Robin Rane" Margin="16,14,0,14" CharacterSpacing="0.25" FontFamily="Roboto-Regular" FontSize="14" />
                    </Grid>
                </syncfusion:AccordionItem.Header>
                <syncfusion:AccordionItem.Content>
                    <Grid ColumnSpacing="10" RowSpacing="2" BackgroundColor="#f4f4f4">
                        <Grid Margin="16,6,0,0" RowDefinitions="25,25,25,25,70,Auto" ColumnDefinitions="100,100,*">
                            <Grid.Resources>
                                <Style TargetType="Label">
                                    <Setter Property="FontFamily" Value="Roboto-Regular" />
                                </Style>
                            </Grid.Resources>
                            <Border Grid.RowSpan="4" Grid.Row="0" Grid.Column="0" Padding="0" Margin="0,0,0,7">
                                <Image Source="emp_01.png" />
                            </Border>
                            <Label Text="Position" Grid.Row="0" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="Chairman" Grid.Row="0" Grid.Column="2" />
                            <Label Text="Organization " Grid.Row="1" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="ABC Inc." Grid.Row="1" Grid.Column="2" />
                            <Label Text="Date Of Birth " Grid.Row="2" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="09/17/1973" Grid.Row="2" Grid.Column="2" />
                            <Label Text="Location " Grid.Row="3" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="Boston" Grid.Row="3" Grid.Column="2" />
                            <Label Padding="0,10,0,10" Grid.Row="4" Grid.ColumnSpan="3" LineBreakMode="WordWrap" FontSize="14" CharacterSpacing="0.25" VerticalTextAlignment="Center" 
                                   Text="Robin Rane, Chairman of ABC Inc., leads with dedication and vision.Under his guidance, the company thrives and continues to make a significant impact in the industry." />
                            <StackLayout Grid.Row="5" Orientation="Horizontal" Margin="0,0,0,12">
                                <Label Text="&#xe700;" FontSize="16" Margin="0,2,2,2" FontFamily='{OnPlatform Android=AccordionFontIcons.ttf#,WinUI=AccordionFontIcons.ttf#AccordionFontIcons,MacCatalyst=AccordionFontIcons,iOS=AccordionFontIcons}' VerticalOptions="Center" VerticalTextAlignment="Center" />
                                <Label Text="(617) 555-1234" Grid.Column="1" VerticalOptions="Center" CharacterSpacing="0.25" FontSize="14" />
                            </StackLayout>
                        </Grid>
                    </Grid>
                </syncfusion:AccordionItem.Content>
            </syncfusion:AccordionItem>
            ..........................
        </syncfusion:SfAccordion.Items>
    </syncfusion:SfAccordion>
    public partial class MainPage : ContentPage
    {
        public MainPage()
        {
            InitializeComponent();
    
            var accordion = new SfAccordion();
            accordion.ExpandMode = AccordionExpandMode.Multiple;
            var accordionItems = new AccordionItem
            {
                Header = CreateHeader(),
                Content = CreateContent()
            };
    
            accordion.Items.Add(accordionItems);
            this.Content = accordion;
        }
    
        private View CreateHeader()
        {
            var headerGrid = new Grid
            {
                HeightRequest = 48
            };
    
            headerGrid.Children.Add(new Label
            {
                Text = "Robin Rane",
                Margin = new Thickness(16, 14, 0, 14),
                CharacterSpacing = 0.25,
                FontFamily = "Roboto-Regular",
                FontSize = 14
            });
    
            return headerGrid;
        }
    
        private View CreateContent()
        {
            var outerGrid = new Grid
            {
                BackgroundColor = Color.FromArgb("#f4f4f4"),
                ColumnSpacing = 10,
                RowSpacing = 2
            };
    
            var innerGrid = new Grid
            {
                Margin = new Thickness(16, 6, 0, 0),
                RowDefinitions =
                {
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 70 },
                    new RowDefinition { Height = GridLength.Auto }
                },
                ColumnDefinitions =
                {
                    new ColumnDefinition { Width = 100 },
                    new ColumnDefinition { Width = 100 },
                    new ColumnDefinition { Width = GridLength.Star }
                }
            };
    
            // Image
            var imageBorder = new Border
            {
                Margin = new Thickness(0, 0, 0, 7),
                Content = new Image { Source = "emp_01.png" }
            };
    
            Grid.SetRow(imageBorder, 0);
            Grid.SetColumn(imageBorder, 0);
            Grid.SetRowSpan(imageBorder, 4);
            innerGrid.Children.Add(imageBorder);
    
            AddText(innerGrid, "Position", 0, 1, true);
            AddText(innerGrid, "Chairman", 0, 2);
    
            AddText(innerGrid, "Organization", 1, 1, true);
            AddText(innerGrid, "ABC Inc.", 1, 2);
    
            AddText(innerGrid, "Date Of Birth", 2, 1, true);
            AddText(innerGrid, "09/17/1973", 2, 2);
    
            AddText(innerGrid, "Location", 3, 1, true);
            AddText(innerGrid, "Boston", 3, 2);
    
            // Description
            var description = new Label
            {
                Text = "Robin Rane, Chairman of ABC Inc., leads with dedication and vision. "Under his guidance, the company thrives and continues to make a significant impact in the industry.",
                Padding = new Thickness(0, 10),
                LineBreakMode = LineBreakMode.WordWrap,
                VerticalTextAlignment = TextAlignment.Center,
                FontFamily = "Roboto-Regular",
                FontSize = 14,
                CharacterSpacing = 0.25
            };
    
            Grid.SetRow(description, 4);
            Grid.SetColumnSpan(description, 3);
            innerGrid.Children.Add(description);
    
            // Phone row
            var phoneStack = new StackLayout
            {
                Orientation = StackOrientation.Horizontal,
                Margin = new Thickness(0, 0, 0, 12),
                Children =
                {
                    new Label
                    {
                        Text = "\ue700",
                        FontSize = 16,
                        FontFamily = DeviceInfo.Platform == DevicePlatform.Android ? "AccordionFontIcons.ttf#" : "AccordionFontIcons",
                        VerticalTextAlignment = TextAlignment.Center
                    },
                    new Label
                    {
                        Text = "(617) 555-1234",
                        FontSize = 14,
                        CharacterSpacing = 0.25,
                        VerticalTextAlignment = TextAlignment.Center
                    }
                }
            };
    
            Grid.SetRow(phoneStack, 5);
            Grid.SetColumnSpan(phoneStack, 3);
            innerGrid.Children.Add(phoneStack);
            outerGrid.Children.Add(innerGrid);
            return outerGrid;
        }
    
        private void AddText(Grid grid, string text, int row, int column, bool withMargin = false)
        {
            var label = new Label
            {
                Text = text,
                FontFamily = "Roboto-Regular",
                Margin = withMargin ? new Thickness(6, 0, 0, 0) : Thickness.Zero
            };
    
            Grid.SetRow(label, row);
            Grid.SetColumn(label, column);
            grid.Children.Add(label);
        }
    }

    Item spacing

    The SfAccordion allows you to customize the vertical spacing between the accordion items by using the ItemSpacing property.

    <syncfusion:SfAccordion x:Name="accordion"
                            ItemSpacing="6.0d">
        <syncfusion:SfAccordion.Items>
            <syncfusion:AccordionItem>
                <syncfusion:AccordionItem.Header>
                    <Grid  HeightRequest="48">
                        <Label Text="Robin Rane" Margin="16,14,0,14" CharacterSpacing="0.25" FontFamily="Roboto-Regular" FontSize="14" />
                    </Grid>
                </syncfusion:AccordionItem.Header>
                <syncfusion:AccordionItem.Content>
                    <Grid ColumnSpacing="10" RowSpacing="2" BackgroundColor="#f4f4f4">
                        <Grid Margin="16,6,0,0" RowDefinitions="25,25,25,25,70,Auto" ColumnDefinitions="100,100,*">
                            <Grid.Resources>
                                <Style TargetType="Label">
                                    <Setter Property="FontFamily" Value="Roboto-Regular" />
                                </Style>
                            </Grid.Resources>
                            <Border Grid.RowSpan="4" Grid.Row="0" Grid.Column="0" Padding="0" Margin="0,0,0,7">
                                <Image Source="emp_01.png" />
                            </Border>
                            <Label Text="Position" Grid.Row="0" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="Chairman" Grid.Row="0" Grid.Column="2" />
                            <Label Text="Organization " Grid.Row="1" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="ABC Inc." Grid.Row="1" Grid.Column="2" />
                            <Label Text="Date Of Birth " Grid.Row="2" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="09/17/1973" Grid.Row="2" Grid.Column="2" />
                            <Label Text="Location " Grid.Row="3" Grid.Column="1" Margin="6,0,0,0" />
                            <Label Text="Boston" Grid.Row="3" Grid.Column="2" />
                            <Label Padding="0,10,0,10" Grid.Row="4" Grid.ColumnSpan="3" LineBreakMode="WordWrap" FontSize="14" CharacterSpacing="0.25" VerticalTextAlignment="Center" 
                                   Text="Robin Rane, Chairman of ABC Inc., leads with dedication and vision.Under his guidance, the company thrives and continues to make a significant impact in the industry." />
                            <StackLayout Grid.Row="5" Orientation="Horizontal" Margin="0,0,0,12">
                                <Label Text="&#xe700;" FontSize="16" Margin="0,2,2,2" FontFamily='{OnPlatform Android=AccordionFontIcons.ttf#,WinUI=AccordionFontIcons.ttf#AccordionFontIcons,MacCatalyst=AccordionFontIcons,iOS=AccordionFontIcons}' VerticalOptions="Center" VerticalTextAlignment="Center" />
                                <Label Text="(617) 555-1234" Grid.Column="1" VerticalOptions="Center" CharacterSpacing="0.25" FontSize="14" />
                            </StackLayout>
                        </Grid>
                    </Grid>
                </syncfusion:AccordionItem.Content>
            </syncfusion:AccordionItem>
            ..........................
        </syncfusion:SfAccordion.Items>
    </syncfusion:SfAccordion>
    public partial class MainPage : ContentPage
    {
        public MainPage()
        {
            InitializeComponent();
    
            var accordion = new SfAccordion();
            accordion.ItemSpacing = 6.0d;
            var accordionItems = new AccordionItem
            {
                Header = CreateHeader(),
                Content = CreateContent()
            };
    
            accordion.Items.Add(accordionItems);
            this.Content = accordion;
        }
    
        private View CreateHeader()
        {
            var headerGrid = new Grid
            {
                HeightRequest = 48
            };
    
            headerGrid.Children.Add(new Label
            {
                Text = "Robin Rane",
                Margin = new Thickness(16, 14, 0, 14),
                CharacterSpacing = 0.25,
                FontFamily = "Roboto-Regular",
                FontSize = 14
            });
    
            return headerGrid;
        }
    
        private View CreateContent()
        {
            var outerGrid = new Grid
            {
                BackgroundColor = Color.FromArgb("#f4f4f4"),
                ColumnSpacing = 10,
                RowSpacing = 2
            };
    
            var innerGrid = new Grid
            {
                Margin = new Thickness(16, 6, 0, 0),
                RowDefinitions =
                {
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 25 },
                    new RowDefinition { Height = 70 },
                    new RowDefinition { Height = GridLength.Auto }
                },
                ColumnDefinitions =
                {
                    new ColumnDefinition { Width = 100 },
                    new ColumnDefinition { Width = 100 },
                    new ColumnDefinition { Width = GridLength.Star }
                }
            };
    
            // Image
            var imageBorder = new Border
            {
                Margin = new Thickness(0, 0, 0, 7),
                Content = new Image { Source = "emp_01.png" }
            };
    
            Grid.SetRow(imageBorder, 0);
            Grid.SetColumn(imageBorder, 0);
            Grid.SetRowSpan(imageBorder, 4);
            innerGrid.Children.Add(imageBorder);
    
            AddText(innerGrid, "Position", 0, 1, true);
            AddText(innerGrid, "Chairman", 0, 2);
    
            AddText(innerGrid, "Organization", 1, 1, true);
            AddText(innerGrid, "ABC Inc.", 1, 2);
    
            AddText(innerGrid, "Date Of Birth", 2, 1, true);
            AddText(innerGrid, "09/17/1973", 2, 2);
    
            AddText(innerGrid, "Location", 3, 1, true);
            AddText(innerGrid, "Boston", 3, 2);
    
            // Description
            var description = new Label
            {
                Text = "Robin Rane, Chairman of ABC Inc., leads with dedication and vision. "Under his guidance, the company thrives and continues to make a significant impact in the industry.",
                Padding = new Thickness(0, 10),
                LineBreakMode = LineBreakMode.WordWrap,
                VerticalTextAlignment = TextAlignment.Center,
                FontFamily = "Roboto-Regular",
                FontSize = 14,
                CharacterSpacing = 0.25
            };
    
            Grid.SetRow(description, 4);
            Grid.SetColumnSpan(description, 3);
            innerGrid.Children.Add(description);
    
            // Phone row
            var phoneStack = new StackLayout
            {
                Orientation = StackOrientation.Horizontal,
                Margin = new Thickness(0, 0, 0, 12),
                Children =
                {
                    new Label
                    {
                        Text = "\ue700",
                        FontSize = 16,
                        FontFamily = DeviceInfo.Platform == DevicePlatform.Android ? "AccordionFontIcons.ttf#" : "AccordionFontIcons",
                        VerticalTextAlignment = TextAlignment.Center
                    },
                    new Label
                    {
                        Text = "(617) 555-1234",
                        FontSize = 14,
                        CharacterSpacing = 0.25,
                        VerticalTextAlignment = TextAlignment.Center
                    }
                }
            };
    
            Grid.SetRow(phoneStack, 5);
            Grid.SetColumnSpan(phoneStack, 3);
            innerGrid.Children.Add(phoneStack);
            outerGrid.Children.Add(innerGrid);
            return outerGrid;
        }
    
        private void AddText(Grid grid, string text, int row, int column, bool withMargin = false)
        {
            var label = new Label
            {
                Text = text,
                FontFamily = "Roboto-Regular",
                Margin = withMargin ? new Thickness(6, 0, 0, 0) : Thickness.Zero
            };
    
            Grid.SetRow(label, row);
            Grid.SetColumn(label, column);
            grid.Children.Add(label);
        }
    }

    NOTE

    You can refer to our .NET MAUI Accordion feature tour page for its groundbreaking feature representations. You can also explore our .NET MAUI Accordion Example that shows you how to render and configure the Accordion in .NET MAUI.