Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
192 commits
Select commit Hold shift + click to select a range
f807eb6
getting started followed common format
VimalaThirumalaikumar Sep 16, 2024
5f5877b
deploy content
VimalaThirumalaikumar Sep 16, 2024
8f44c07
separate tags updated
VimalaThirumalaikumar Sep 16, 2024
1a70b99
Updated DataGrid Getting-started.md file.
RasikaPalanisamy Sep 16, 2024
d7c5bf8
Removed unnecessary topic.
RasikaPalanisamy Sep 16, 2024
b2c9eaf
Added link.
RasikaPalanisamy Sep 16, 2024
8a009cc
Updated avatar view Getting-Started.md
naveenkumar-sanjeevirayan Sep 16, 2024
6e85161
Updated the Radial-Menu/Getting-Started.md and Switch/Getting-Started.md
Sep 16, 2024
fe2a968
updated alignments
naveenkumar-sanjeevirayan Sep 16, 2024
e41714d
addressed pr comments
VimalaThirumalaikumar Sep 16, 2024
c546fc6
addressed feedback
naveenkumar-sanjeevirayan Sep 16, 2024
244b7f3
getting started updated
VimalaThirumalaikumar Sep 16, 2024
3aae9dc
MAUI ListView - Modified the Getting started UG layout.
PiruthivirajM Sep 16, 2024
72afd45
modified title.
PiruthivirajM Sep 16, 2024
2ec2908
updated VS Code link.
PiruthivirajM Sep 16, 2024
214ccc2
resolved compilation errors
naveenkumar-sanjeevirayan Sep 16, 2024
4c0a8e3
review suggestion updated
VimalaThirumalaikumar Sep 16, 2024
a927c99
Added sub topics.
RasikaPalanisamy Sep 16, 2024
0cb064a
update link
naveenkumar-sanjeevirayan Sep 16, 2024
d35bf6f
Updated the Radial-Menu/Getting-Started.md and Switch/Getting-Started…
Sep 16, 2024
532dac0
Updated corrections.
RasikaPalanisamy Sep 16, 2024
6a53fd6
roman number updated
VimalaThirumalaikumar Sep 16, 2024
26d0123
Updated corrections.
RasikaPalanisamy Sep 16, 2024
c8ee20c
Merge pull request #2650 from syncfusion-content/MauiCoreHotfix
naveenkumar-sanjeevirayan Sep 16, 2024
becda87
Updated the Radio-Button/Getting-Started.md and CheckBox/Getting-Star…
Sep 16, 2024
93a18d7
Updated review concerns.
RasikaPalanisamy Sep 16, 2024
ac95b5b
Updated NavigationDrawer's and TabView's Getting-Started.md
Arunachalam406 Sep 16, 2024
67d675a
Added changes.
Arunachalam406 Sep 16, 2024
5733fc5
Addressed the review corrections.
ashok-kuvaraja Sep 16, 2024
b899911
resolved the content errors.
PiruthivirajM Sep 16, 2024
2f4d54e
Updated the Getting Started page of the MAUI PDF viewer control.
NavaneethS Sep 16, 2024
3a6bc3e
Added the review changes.
Arunachalam406 Sep 16, 2024
5ea55f5
Merge branch 'hotfix/hotfix-v26.2.4' of https://github.com/syncfusion…
Arunachalam406 Sep 16, 2024
56af160
Resolved CI errors.
PiruthivirajM Sep 16, 2024
b78d4ef
updated badge view getting started
naveenkumar-sanjeevirayan Sep 16, 2024
9989289
Added the changes.
Arunachalam406 Sep 16, 2024
3698aa4
updated titles
naveenkumar-sanjeevirayan Sep 16, 2024
4c1cee9
Updated the changes
Sep 16, 2024
5b682d7
Modified the Popup getting started UG.
PiruthivirajM Sep 16, 2024
664c5cc
Added the changes.
Arunachalam406 Sep 16, 2024
08c2af5
Updated the changes
Sep 16, 2024
d44864a
modify the getting started scheduler ug
saiganesh-sakthivel Sep 16, 2024
704e020
Corrected spelling mistake in PDF viewer getting started
NavaneethS Sep 16, 2024
5c5f6b0
Resolved CI errors.
PiruthivirajM Sep 16, 2024
2a25071
Update getting-started.md
saiganesh-sakthivel Sep 16, 2024
dc65bdf
Chat - Modified the getting-started UG.
PiruthivirajM Sep 16, 2024
036f504
Added review corrections
ashok-kuvaraja Sep 16, 2024
8da1920
Updated review corrections
naveenkumar-sanjeevirayan Sep 16, 2024
fcf919a
Merge branch 'hotfix/hotfix-v26.2.4' of https://github.com/syncfusion…
naveenkumar-sanjeevirayan Sep 16, 2024
26802a2
Addressed the feedbacks - Add links for NuGet packages.
NavaneethS Sep 16, 2024
d95ed98
Modified the content.
PiruthivirajM Sep 16, 2024
840e1ab
Updated the changes
Sep 16, 2024
c6bbed4
modified the review correction
saiganesh-sakthivel Sep 16, 2024
a9aa5c5
Merge pull request #2654 from syncfusion-content/PdfViewer_GettingSta…
NavaneethS Sep 16, 2024
292bed2
modified
saiganesh-sakthivel Sep 16, 2024
fb3f42b
TreeView - Modified the getting started UG.
PiruthivirajM Sep 16, 2024
ad8ce1b
Added the review changes.
Arunachalam406 Sep 16, 2024
89a19ad
PullToRefresh - modified the getting-started file.
PiruthivirajM Sep 16, 2024
d474758
Expander, Accordion - Modified the Getting started UG.
PiruthivirajM Sep 16, 2024
c9f429c
Added link for NuGet
naveenkumar-sanjeevirayan Sep 17, 2024
78f678b
Merge pull request #2655 from syncfusion-content/MauiCoreHotfix
naveenkumar-sanjeevirayan Sep 17, 2024
efb84b5
Addressed the review corrections
naveenkumar-sanjeevirayan Sep 17, 2024
1548fa8
Addressed review corrections
naveenkumar-sanjeevirayan Sep 17, 2024
efb5ed5
Resolved the spell error in Radial-Menu/Getting-Started.md
naveenkumar-sanjeevirayan Sep 17, 2024
817560e
Merge pull request #2656 from syncfusion-content/schedulerUGChanges
PaulAndersonS Sep 17, 2024
e5e9e33
pr comments addressed
VimalaThirumalaikumar Sep 17, 2024
429f917
Merge pull request #2653 from syncfusion-content/909942-GettingStarted
naveenkumar-sanjeevirayan Sep 17, 2024
7fc91b0
Updated the changes
SriRadheshNagS Sep 17, 2024
10dbc5c
Merge pull request #2651 from syncfusion-content/UG-Modify
naveenkumar-sanjeevirayan Sep 17, 2024
2fa0d1b
Update getting-started.md
SriRadheshNagS Sep 17, 2024
8b91397
Updated changes
SriRadheshNagS Sep 17, 2024
dde1dda
MAUI Calendar Getting Started Content Modified
MohanrajVSF3559 Sep 17, 2024
0a640bb
Modified MAUI Calendar Team Side Control Getting Started Content
Sathish-087 Sep 17, 2024
605dd50
Updated review corrections
SriRadheshNagS Sep 17, 2024
332c31e
Update getting-started.md
SriRadheshNagS Sep 17, 2024
cb94df2
Picker getting started content changes
Sathish-087 Sep 17, 2024
f227ebb
Cards getting stated content change
Sathish-087 Sep 17, 2024
a9eb74a
Updated changes
SriRadheshNagS Sep 17, 2024
72236af
Shimmer getting started content changes
Sathish-087 Sep 17, 2024
de4d1bc
Updated changes
SriRadheshNagS Sep 17, 2024
52ffb53
image modified
VimalaThirumalaikumar Sep 17, 2024
d207bce
MAUI Backdrop getting started content modified
MohanrajVSF3559 Sep 17, 2024
7f7cb58
Update getting-started.md
SriRadheshNagS Sep 17, 2024
267b779
Address review comments and linear gauge content changes
Sathish-087 Sep 17, 2024
f5a79b7
Updated changes
SriRadheshNagS Sep 17, 2024
54c4840
Merge pull request #2645 from syncfusion-content/Modify-maui-chart-ge…
Saravanan-Madhesh Sep 17, 2024
5d594d1
MAUI Barcode generator getting started modified
MohanrajVSF3559 Sep 17, 2024
46d90b3
Updated getting started UG for Button, Chips, Slider, RangeSlider, Da…
Kamalesh-Periyasamy Sep 17, 2024
89fe546
MAUI Gauges getting started content modified
MohanrajVSF3559 Sep 17, 2024
7becf8a
updated Autocomplete/Getting-Started.md
PrithisSF3973 Sep 17, 2024
a1fb4c1
Merge branch 'gettingstarted_updates_hotfix' of https://github.com/sy…
PrithisSF3973 Sep 17, 2024
1fce8cb
Removed unwanted spaces
Kamalesh-Periyasamy Sep 17, 2024
5bc9d9a
updated ComboBox/Getting-Started.md
PrithisSF3973 Sep 17, 2024
b16415b
Merge branch 'gettingstarted_updates_hotfix' of https://github.com/sy…
PrithisSF3973 Sep 17, 2024
c4feb70
Date Picker content change and linear gauge code snippet changes
Sathish-087 Sep 17, 2024
64a144e
MAUI Linear gauge getting started content modified
MohanrajVSF3559 Sep 17, 2024
db40c95
Updated Carousel-View/getting-started.md
PrithisSF3973 Sep 17, 2024
bb4eb90
Updated DateTime-Slider/getting-started.md
PrithisSF3973 Sep 17, 2024
b13e9e8
Time picker content changes
Sathish-087 Sep 17, 2024
1df12a9
Updated the changes
SriRadheshNagS Sep 17, 2024
8b7c350
Updated the Masked-Entry/Getting-Started.md and NumericEntry/Getting-…
PrithisSF3973 Sep 17, 2024
4f4f491
DateTimePicker getting started content modified
MohanrajVSF3559 Sep 17, 2024
cec3675
Update getting-started.md
SriRadheshNagS Sep 17, 2024
6089baf
Update getting-started.md
SriRadheshNagS Sep 17, 2024
efc0763
Update getting-started.md
SriRadheshNagS Sep 17, 2024
b8bee82
updated the SignaturePad/getting-started.md
PrithisSF3973 Sep 17, 2024
be6fc96
Updated the changes
SriRadheshNagS Sep 17, 2024
451458c
ci error cleared
MohanrajVSF3559 Sep 17, 2024
a53a06d
Update getting-started.md
SriRadheshNagS Sep 17, 2024
827160a
Review concerns addressed
MohanrajVSF3559 Sep 17, 2024
3bd2bda
Updated Getting Started for TIL, Rotator, Rating, RangeSlider and Dat…
Kamalesh-Periyasamy Sep 17, 2024
964e1a6
Merge branch 'gettingstarted_updates_hotfix' of https://github.com/sy…
Kamalesh-Periyasamy Sep 17, 2024
b825e74
Addressed review changes
Kamalesh-Periyasamy Sep 17, 2024
fa94e67
parallax view getting started updated
VimalaThirumalaikumar Sep 17, 2024
512ef3f
Update getting-started.md
saiganesh-sakthivel Sep 17, 2024
1f4ecf6
Progressbar getting started
MohanrajVSF3559 Sep 17, 2024
7bb0c07
Remove unwanted code snippet
Sathish-087 Sep 17, 2024
a0b84e6
All file changes done
MohanrajVSF3559 Sep 17, 2024
5997a3e
Update getting-started.md
saiganesh-sakthivel Sep 17, 2024
1f003aa
Add cards image
Sathish-087 Sep 17, 2024
394f4b7
CI issue fix
VimalaThirumalaikumar Sep 17, 2024
a518484
Addressed the review corrections.
ashok-kuvaraja Sep 17, 2024
94259be
Revamped the code snippets.
ashok-kuvaraja Sep 17, 2024
c15a05f
Added youtube video
Sathish-087 Sep 17, 2024
e871d23
Resolved typo mistakes.
PiruthivirajM Sep 17, 2024
aa4bfe7
control name mentioned properly
MohanrajVSF3559 Sep 17, 2024
e7dd925
Update getting-started.md
Jeyasri-Murugan Sep 17, 2024
304b302
Update getting-started.md
Jeyasri-Murugan Sep 17, 2024
ddf8396
Update Getting-Started.md
SriRadheshNagS Sep 17, 2024
b16e85a
Update getting-started.md
Jeyasri-Murugan Sep 17, 2024
8438566
Update Getting-Started.md
SriRadheshNagS Sep 17, 2024
3f84756
Update getting-started.md
Jeyasri-Murugan Sep 17, 2024
8a999b9
Update getting-started.md
Jeyasri-Murugan Sep 17, 2024
dc3de35
Update getting-started.md
Jeyasri-Murugan Sep 17, 2024
094bfb9
Merge pull request #2665 from syncfusion-content/CalendarTeamSideUGCh…
MuniappanSubramanian Sep 17, 2024
652d1c5
alignment addressed
MohanrajVSF3559 Sep 17, 2024
e50dcc5
Merge pull request #2673 from syncfusion-content/Modify-maui-chart-ge…
Saravanan-Madhesh Sep 17, 2024
07a5ee5
Update getting-started.md
Jeyasri-Murugan Sep 17, 2024
e64b0f8
Update getting-started.md
Jeyasri-Murugan Sep 17, 2024
6765909
Update getting-started.md
Jeyasri-Murugan Sep 17, 2024
716be83
Update getting-started.md
Jeyasri-Murugan Sep 17, 2024
f158769
Update getting-started.md
Jeyasri-Murugan Sep 17, 2024
1f4f3fb
conflict resolved
MohanrajVSF3559 Sep 17, 2024
2d65b47
Merge pull request #2663 from syncfusion-content/TreeMapChanges
Jeyasri-Murugan Sep 17, 2024
047a0a0
Merge pull request #2669 from syncfusion-content/ImageEditorChanges
Jeyasri-Murugan Sep 17, 2024
8380043
Merge pull request #2668 from syncfusion-content/MapsChanges
Jeyasri-Murugan Sep 17, 2024
4614e97
Merge pull request #2662 from syncfusion-content/Dataformchanges
Jeyasri-Murugan Sep 17, 2024
e2006bd
Merge pull request #2670 from syncfusion-content/SegmentChanges
Jeyasri-Murugan Sep 17, 2024
d683dde
Update Getting-Started.md
Jeyasri-Murugan Sep 17, 2024
810823e
Merge branch 'hotfix/hotfix-v26.2.4' of https://github.com/syncfusion…
MohanrajVSF3559 Sep 17, 2024
8b8d8ab
Merge pull request #2675 from syncfusion-content/DigitalGaugechanged
Jeyasri-Murugan Sep 17, 2024
eb68490
resolved review corrections.
PiruthivirajM Sep 17, 2024
d6ecb92
Merge pull request #2646 from syncfusion-content/datagrid-changes
jayaleshwari Sep 17, 2024
989213c
Updated links.
PrithisSF3973 Sep 17, 2024
d5365c6
added images for Expander & Accordion.
PiruthivirajM Sep 17, 2024
9d7d7a8
Addressed PO changes.
PrithisSF3973 Sep 17, 2024
354cf87
Updated note position.
PrithisSF3973 Sep 17, 2024
bca09d8
resolved spelling errors.
PiruthivirajM Sep 17, 2024
b8c5093
Merge pull request #2664 from syncfusion-content/MAUI-Calendar-Gettin…
MuniappanSubramanian Sep 17, 2024
eec6f87
Updated "NuGet"
PrithisSF3973 Sep 17, 2024
cea55fe
Merge pull request #2671 from syncfusion-content/gettingstarted_updat…
Choza-rajan Sep 17, 2024
491dc9a
Content changes added
MuniappanSubramanian Sep 17, 2024
5c23c25
Merge pull request #2652 from syncfusion-content/ListViewUGUpdate
PiruthivirajM Sep 17, 2024
1353be4
Content changes
Sathish-087 Sep 17, 2024
a88b5cf
Merge branch 'hotfix/hotfix-v26.2.4' of https://github.com/syncfusion…
Sathish-087 Sep 17, 2024
1d33554
Digital Gauge changes added
Sathish-087 Sep 17, 2024
00e6376
CI success
Sathish-087 Sep 17, 2024
bd6ec38
Addressed the review corrections
ashok-kuvaraja Sep 17, 2024
bcebd59
Merge pull request #2679 from syncfusion-content/datagrid-changes
jayaleshwari Sep 17, 2024
e3cfb7d
Resolved the typo mistakes.
PiruthivirajM Sep 17, 2024
8952f35
UG review suggestions updated
Jeyasri-Murugan Sep 17, 2024
01eaf81
Review corrections updated
Jeyasri-Murugan Sep 17, 2024
8595608
review correction updated
Jeyasri-Murugan Sep 17, 2024
82499ea
Updated
Kamalesh-Periyasamy Sep 17, 2024
f1c900f
Updated
Kamalesh-Periyasamy Sep 17, 2024
bccc222
review suggestion updated
Jeyasri-Murugan Sep 17, 2024
e57a22f
Updated
Kamalesh-Periyasamy Sep 17, 2024
ea32580
Merge pull request #2678 from syncfusion-content/MAUI-Calendar-Gettin…
Jeyasri-Murugan Sep 17, 2024
0cdd0f7
Merge pull request #2681 from syncfusion-content/Scheduler-Revamp
Jeyasri-Murugan Sep 17, 2024
98b2eab
Update getting-started.md
PrithisIyyappan Sep 17, 2024
415b5cc
Merge pull request #2680 from syncfusion-content/ListViewUGUpdate
PiruthivirajM Sep 17, 2024
0167ad2
MAUI-903350: Calendar Team Control UG Review Correction Added
Sathish-087 Sep 17, 2024
f789b7b
Content change
Sathish-087 Sep 17, 2024
208e467
Merge branch 'hotfix/hotfix-v26.2.4' of https://github.com/syncfusion…
Sathish-087 Sep 17, 2024
12c1b85
Merge pull request #2682 from syncfusion-content/gettingstarted_updat…
Choza-rajan Sep 17, 2024
fd2cad5
Merge pull request #2684 from syncfusion-content/MAUI-Calendar-Gettin…
MuniappanSubramanian Sep 17, 2024
0da92c7
Updated getting started page of core controls
naveenkumar-sanjeevirayan Sep 18, 2024
a887c7e
Merge pull request #2687 from syncfusion-content/MauiCoreHotfix
naveenkumar-sanjeevirayan Sep 18, 2024
80cf299
Resolve Liquid syntax error in Badge-View/Getting-Started.md
naveenkumar-sanjeevirayan Sep 18, 2024
00364a2
Merge pull request #2688 from syncfusion-content/MauiCoreHotfix
naveenkumar-sanjeevirayan Sep 18, 2024
d4c01f6
Fixed syntax error.
VikramDevaraj31 Sep 18, 2024
6781030
Merge pull request #2691 from syncfusion-content/PdfViewer_GettingSta…
Deepak1799 Sep 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
102 changes: 65 additions & 37 deletions MAUI/Accordion/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,48 +7,44 @@ control: SfAccordion
documentation: ug
---

# Getting Started with MAUI Accordion (SfAccordion)
# Getting Started with MAUI Accordion

This section provides a quick overview of how to get started with the Accordion (SfAccordion) for .NET MAUI. Walk-through the entire process of creating the real world of this control.
This section guides you through setting up and configuring a [Accordion](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Accordion.SfAccordion.html) in your .NET MAUI application. Follow the steps below to add a basic Accordion to your project.


To get start quickly with .NET MAUI Accordion, you can check on this video:
To quickly get started with the .NET MAUI Accordion, watch this video:

<style>#MAUIAccordionVideoTutorial{width : 90% !important; height: 400px !important }</style> <iframe id='MAUIAccordionVideoTutorial' src='https://www.youtube.com/embed/AdZpwD3W2xE'></iframe>

## Creating an application using the .NET MAUI Accordion
## Prerequisites
Before proceeding, ensure the following are in place:

1. Create a new .NET MAUI application in Visual Studio.
2. Syncfusion .NET MAUI components are available on [nuget.org](https://www.nuget.org/). To add SfAccordion to your project, open the NuGet package manager in Visual Studio, search for `Syncfusion.Maui.Expander` and install it.
3. Import the control namespace `Syncfusion.Maui.Accordion` in XAML or C# code.
4. Initialize the `SfAccordion` control.

{% tabs %}
{% highlight xaml hl_lines="4" %}
<ContentPage
. . .
xmlns:syncfusion="clr-namespace:Syncfusion.Maui.Accordion;assembly=Syncfusion.Maui.Expander">
<syncfusion:SfAccordion />
</ContentPage>
{% endhighlight %}
1. Install [.NET 7 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/7.0) or later.
2. Set up a .NET MAUI environment with Visual Studio 2022 (v17.3 or later) or VS Code. For VS Code users, ensure that the .NET MAUI workload is installed and configured as described [here](https://learn.microsoft.com/en-us/dotnet/maui/get-started/installation?view=net-maui-8.0&tabs=visual-studio-code).

{% highlight c# hl_lines="8" %}
using Syncfusion.Maui.Accordion;
. . .
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
SfAccordion accordion = new SfAccordion();
}
}
{% endhighlight %}
{% endtabs %}
## Step 1: Create a .NET MAUI project

### Visual Studio

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. Then, click **Create**.

### Visual Studio Code

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. In **Solution Explorer**, right-click the project and choose **Manage NuGet Packages**.
2. Search for [Syncfusion.Maui.Expander](https://www.nuget.org/packages/Syncfusion.Maui.Expander) and install the latest version.
3. Ensure the necessary dependencies are installed correctly, and the project is restored.

## Register the handler
## Step 3: Register the handler

The `Syncfusion.Maui.Core` NuGet package is a dependency for all Syncfusion controls in .NET MAUI. In the `MauiProgram.cs` file, you need to register the handler for Syncfusion core.
The [Syncfusion.Maui.Core](https://www.nuget.org/packages/Syncfusion.Maui.Core) is a dependent package for all Syncfusion controls in .NET MAUI. In the `MauiProgram.cs` file, you need to register the handler for Syncfusion core.

{% tabs %}
{% highlight c# tabtitle="MauiProgram.cs" hl_lines="4 20" %}
Expand Down Expand Up @@ -77,11 +73,39 @@ namespace GettingStarted
}
}
{% endhighlight %}
{% endtabs %}

## Step 4: Add a Basic Accordion

1. To initialize the control, import the `Syncfusion.Maui.Accordion` namespace into your code.
2. Initialize [SfAccordion](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Accordion.SfAccordion.html).

{% tabs %}
{% highlight xaml hl_lines="4" %}
<ContentPage
. . .
xmlns:syncfusion="clr-namespace:Syncfusion.Maui.Accordion;assembly=Syncfusion.Maui.Expander">
<syncfusion:SfAccordion />
</ContentPage>
{% endhighlight %}

{% highlight c# hl_lines="8" %}
using Syncfusion.Maui.Accordion;
. . .
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
SfAccordion accordion = new SfAccordion();
}
}
{% endhighlight %}
{% endtabs %}

## Defining accordion items
## Step 5: Define the accordion items

The [SfAccordion](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Accordion.SfAccordion.html) is a layout control with a vertically stacked list of accordion [items](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Accordion.SfAccordion.html#Syncfusion_Maui_Accordion_SfAccordion_Items) that comprise a [header](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Accordion.AccordionItem.html#Syncfusion_Maui_Accordion_AccordionItem_Header) and [content](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Accordion.AccordionItem.html#Syncfusion_Maui_Accordion_AccordionItem_Content). You can load any view in the header and content sections. Users can expand or collapse the content view by tapping header.
Create the [AccordionItem](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Accordion.AccordionItem.html) instance that comprise a [header](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Accordion.AccordionItem.html#Syncfusion_Maui_Accordion_AccordionItem_Header) & [content](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Accordion.AccordionItem.html#Syncfusion_Maui_Accordion_AccordionItem_Content) and add it into [Items](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Accordion.SfAccordion.html#Syncfusion_Maui_Accordion_SfAccordion_Items) of `SfAccordion`.

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

Expand Down Expand Up @@ -159,9 +183,13 @@ N> When loading Label as direct children of `Header` or `Content` of `AccordionI
{% endhighlight %}
{% endtabs %}

Now, run the application to render the following output.
## 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,

![.NET MAUI Accordion with items](Images/getting-started/maui-accordion-with-defining-accordion-items.gif)
![.NET MAUI Accordion with items](Images/getting-started/maui-accordion-with-defining-accordion-items.png)

You can download accordion sample for .NET MAUI [here](https://github.com/SyncfusionExamples/getting-started-with-.net-maui-accordion).

Expand Down
68 changes: 51 additions & 17 deletions MAUI/Autocomplete/Getting-Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,45 @@ control: SfAutocomplete
documentation: ug
---

# Getting Started with .NET MAUI Autocomplete (SfAutocomplete)
# Getting Started with .NET MAUI Autocomplete

This section explains how to add the Autocomplete control and bind data to it. This section covers only the basic features needed to get started with the Syncfusion [Autocomplete](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.SfAutocomplete.html) control.
This section guides you through setting up and configuring a [Autocomplete](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.SfAutocomplete.html) in your .NET MAUI application. Follow the steps below to add a basic Autocomplete to your project.

To get start quickly with our .NET MAUI Autocomplete, you can check the below video.
To quickly get started with the .NET MAUI Autocomplete, watch this video.

{% youtube "https://www.youtube.com/watch?v=ontSh2NZvE4" %}

## Adding a .NET MAUI Autocomplete reference
## Prerequisites

Syncfusion .NET MAUI controls are available in [Nuget.org](https://www.nuget.org/). To add [.NET MAUI Autocomplete](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.SfAutocomplete.html) to your project, open the NuGet package manager in Visual Studio, search for [Syncfusion.Maui.Inputs](https://www.nuget.org/packages/Syncfusion.Maui.Inputs) and then install it.
Before proceeding, ensure the following are in place:

## Handler registration
1. Install [.NET 7 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/7.0) or later.
2. Set up a .NET MAUI environment with Visual Studio 2022 (v17.3 or later) or Visual Studio Code. For Visual Studio Code users, ensure that the .NET MAUI workload is installed and configured as described [here](https://learn.microsoft.com/en-us/dotnet/maui/get-started/installation?view=net-maui-8.0&tabs=visual-studio-code).

In the MauiProgram.cs file, register the handler for Syncfusion core.
## Step 1: Create a New MAUI Project

### Visual Studio

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**.

### Visual Studio Code

1. Open the Command Palette by pressing **Ctrl+Shift+P** and type **.NET:New Project** and press 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 Inputs NuGet Package

1. In **Solution Explorer**, right-click the project and choose **Manage NuGet Packages**.
2. Search for [Syncfusion.Maui.Inputs](https://www.nuget.org/packages/Syncfusion.Maui.Inputs) 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](https://www.nuget.org/packages/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.

{% highlight c# hl_lines="6 17" %}
using Microsoft.Maui;
Expand Down Expand Up @@ -53,7 +77,7 @@ namespace AutocompleteSample

{% endhighlight %}

## Create a Simple .NET MAUI Autocomplete
## Step 4: Add a Basic Autocomplete

The .NET MAUI Autocomplete control can be configured entirely using C# code or XAML markup. The following steps explain how to create a [.NET MAUI Autocomplete](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.SfAutocomplete.html) (SfAutocomplete) and configure its elements:

Expand All @@ -77,7 +101,7 @@ Step 1: Add the namespace as shown in the following code sample:

{% endtabs %}

Step 2: Set the control as the content in a `ContentPage.`
Step 2: Set the control as the content in a ContentPage.

{% tabs %}

Expand All @@ -100,9 +124,9 @@ Content = autocomplete;

{% endtabs %}

## Populating items using data binding
## Step 5: Populate items using data binding

The [.NET MAUI Autocomplete](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.SfAutocomplete.html) control can be bound to an external data source using the [ItemsSource](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.DropDownControls.DropDownListBase.html#Syncfusion_Maui_Inputs_DropDownControls_DropDownListBase_ItemsSource) property. Now, let's create Model and ViewModel classes to populate items with social media details in the [Autocomplete](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.SfAutocomplete.html).
The [.NET MAUI Autocomplete](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.SfAutocomplete.html) control can be bound to an external data source using the [ItemsSource](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.DropDownControls.DropDownListBase.html#Syncfusion_Maui_Inputs_DropDownControls_DropDownListBase_ItemsSource) property. Now, let's create Model and ViewModel classes to populate items with social media details in the Autocomplete.

**Step 1:** Create a simple model class called 'SocialMedia' with fields 'ID' and 'Name', and then populate social media data in the 'SocialMediaViewModel'.

Expand Down Expand Up @@ -165,6 +189,7 @@ Now, populate this 'SocialMediaViewModel' data in the [Autocomplete](https://hel
<!--Setting ItemsSource-->
<editors:SfAutocomplete x:Name="autocomplete"
WidthRequest="250"
HeightRequest = "50"
ItemsSource="{Binding SocialMedias}" />
</ContentPage.Content>
</ContentPage>
Expand All @@ -174,36 +199,45 @@ Now, populate this 'SocialMediaViewModel' data in the [Autocomplete](https://hel
{% highlight C# %}

SocialMediaViewModel socialMediaViewModel = new SocialMediaViewModel();
autocomplete.BindingContext = socialMediaViewModel;
autocomplete.ItemsSource = SocialMediaViewModel.SocialMedias;
this.BindingContext = socialMediaViewModel;
SfAutocomplete autocomplete = new SfAutocomplete();
autocomplete.WidthRequest = 250;
autocomplete.HeightRequest = 50;
autocomplete.ItemsSource = socialMediaViewModel.SocialMedias;
Content = autocomplete;

{% endhighlight %}
{% endtabs %}

N> Set the 'SocialMediaViewModel' instance as the `BindingContext` of your control. This is done to bind the properties of 'SocialMediaViewModel' to the `Autocomplete`.
N> Set the BindingContext of your page to an instance of SocialMediaViewModel. This allows you to bind the properties of SocialMediaViewModel to the Autocomplete control.

**Step 3:** Set the `TextMemberPath` and `DisplayMemberPath`.
**Step 3:** Set the **TextMemberPath** and **DisplayMemberPath**.

The [.NET MAUI Autocomplete](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.SfAutocomplete.html) control is populated with a list of social media options. However, since the 'SocialMedia' model includes two properties, 'Name' and 'ID', it's necessary to specify which property should be used as the display value in both the selection box portion and the drop-down suggestion list of the Autocomplete control.

**TextMemberPath**: This property path is used to retrieve the value that will be displayed in the selection box portion of the [.NET MAUI Autocomplete](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.SfAutocomplete.html) control when an item is selected. The default value is `String.Empty`.
**TextMemberPath**: This property path is used to retrieve the value that will be displayed in the selection box portion of the [.NET MAUI Autocomplete](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.SfAutocomplete.html) control when an item is selected. The default value is **String.Empty**.

**DisplayMemberPath**: This property path is used to specify the name or path of the property that will be displayed for each data item in the drop-down list. The default value is `String.Empty`.
**DisplayMemberPath**: This property path is used to specify the name or path of the property that will be displayed for each data item in the drop-down list. The default value is **String.Empty**.

{% tabs %}
{% highlight xaml %}

<editors:SfAutocomplete x:Name="autocomplete"
WidthRequest="250"
HeightRequest = "50"
DisplayMemberPath = "Name"
TextMemberPath = "Name"
ItemsSource="{Binding SocialMedias}" />

{% endhighlight %}
{% highlight C# %}

SfAutocomplete autocomplete = new SfAutocomplete();
autocomplete.WidthRequest = 250;
autocomplete.HeightRequest = 50;
autocomplete.DisplayMemberPath = "Name";
autocomplete.TextMemberPath = "Name";
autocomplete.ItemsSource = socialMediaViewModel.SocialMedias;

{% endhighlight %}
{% endtabs %}
Expand Down
Loading