Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (155).NET Core  (27).NET MAUI  (10)Angular  (51)ASP.NET  (48)ASP.NET Core  (68)ASP.NET MVC  (88)Azure  (29)Blazor  (114)DocIO  (21)Essential JS 2  (73)Essential Studio  (165)File Formats  (22)Flutter  (117)JavaScript  (153)Microsoft  (104)PDF  (59)React  (35)Succinctly series  (124)Syncfusion  (504)TypeScript  (30)Uno Platform  (3)UWP  (4)Vue  (28)Webinar  (27)Windows Forms  (57)WinUI  (32)WPF  (127)Xamarin  (134)XlsIO  (24)Other CategoriesBarcode  (4)BI  (29)Bold BI  (4)Build conference  (6)Business intelligence  (53)Button  (4)C#  (111)Chart  (54)Cloud  (10)Company  (445)Dashboard  (6)Data Science  (3)Data Validation  (5)DataGrid  (51)Development  (273)Doc  (7)DockingManager  (1)eBook  (94)Enterprise  (22)Entity Framework  (5)Essential Tools  (14)Excel  (21)Extensions  (16)File Manager  (4)Gantt  (9)Gauge  (8)Git  (4)Grid  (27)HTML  (9)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (245)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (26)Performance  (7)PHP  (1)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (6)Road Map  (9)Scheduler  (29)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (19)Solution Services  (2)Spreadsheet  (11)SQL  (7)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (11)Tips and Tricks  (71)UI  (147)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (1)Visual Studio  (22)Visual Studio Code  (13)Web  (237)What's new  (158)Windows 8  (19)Windows App  (1)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
Share on twitter
Share on facebook
Share on linkedin
Introducing the New WinUI 3 AutoComplete Control

Introducing the New WinUI 3 AutoComplete Control

We are glad to announce our new WinUI 3 AutoComplete control in the 2021 Volume 4 release. It is a text box control that shows a suggestion list based on user input.

The key features of the AutoComplete control are:

Let’s look at these features and learn how to integrate the new WinUI 3 AutoComplete control into your application.

Multiple selection

The AutoComplete control provides support for both single and multiple selection modes.

In single selection mode, we can select a single item from the suggestion list based on the entered text.

In multiple selection mode, we can choose more than one item from the suggestion list. The selected items are displayed as tokens or chips in the selection area. Each item has a close button to easily remove it.

Multiple Selection Mode in WinUI AutoComplete
Multiple Selection Mode in WinUI AutoComplete

Note: For more details, refer to the multiple selection mode in WinUI AutoComplete documentation.

Filtering

The built-in filtering feature filters items based on the user input in the text box. It filters the items by matching the input text with the starting text or any specific text in the items.

Refer to the following GIF images.

Filtering with Starting Text in WinUI AutoComplete
Filtering with Starting Text in WinUI AutoComplete
Filtering with Contained Text in WinUI AutoComplete
Filtering with Contained Text in WinUI AutoComplete

Note: For more details, refer to the filtering modes in WinUI AutoComplete documentation.

Custom filtering

Besides the built-in filtering support, users can use their own filtering logic to show suggestions. These suggestions can be loaded instantly from a huge volume of data.

Refer to the following image. Here, the AutoComplete filters cities based on the country name.

Custom Filtering in WinUI AutoComplete
Custom Filtering in WinUI AutoComplete

Note: For more details, refer to the custom filtering in WinUI AutoComplete documentation.

Grouping

You can display the suggestions by grouping them using the CollectionViewSource property. Each group will have a header. Also, we can customize the group headers with images and templates.

Refer to the following image.

WinUI AutoComplete Displaying Grouped Items
WinUI AutoComplete Displaying Grouped Items

Note: For more details, refer to the grouping in WinUI AutoComplete documentation.

Asynchronous item loading

This feature dynamically loads a huge volume of data at runtime based on user input.

Refer to the following image where 100,00 items have been loaded based on the user input.

Asynchronous Loading in WinUI AutoComplete
Asynchronous Loading in WinUI AutoComplete

Note: For more details, refer to the asynchronous loading in WinUI AutoComplete documentation.

Item customization

Customize the suggestion list items to create an impressive UI with an image or any custom control. This helps users to easily choose the items they need from the list.

Dropdown Items Customization in WinUI AutoComplete
Dropdown Items Customization in WinUI AutoComplete

Note: For more details, refer to the WinUI AutoComplete dropdown item customization.

Themes

You can enjoy both light and dark themes in AutoComplete control.

Themes in WinUI AutoComplete
Themes in WinUI AutoComplete

Note: Refer to the themes for Syncfusion WinUI Controls documentation.

Getting started with the WinUI AutoComplete

We have explored the features of the WinUI AutoComplete control, so now let’s see how to add it to your app and use its basic features.

Step 1: Create a WinUI application.

First, create a simple project using the instructions provided in the Create a WinUI 3 app with Windows App SDK documentation.

Step 2: Add the Syncfusion.Editor.WinUI NuGet package.

Install the latest Syncfusion.Editor.WinUI NuGet package in your app from nuget.org or from the installed location, C:\Program Files (x86)\Syncfusion\Essential Studio\WinUI\xx.x.x.xx\NuGetPackages.

Note: In the installed location, xx.x.x.xx denotes the version of the Syncfusion WinUI Editor package.

Refer to the following image.

Install the Syncfusion.Editor.WinUI NuGet package

Step 3: Add the namespace.

Include the editors namespace in your XAML file with the following code.

xmlns:editors="using:Syncfusion.UI.Xaml.Editors"

Step 4: Initialize the AutoComplete control.

Finally, initialize the AutoComplete control. Refer to the following code example.

<editors:SfAutoComplete  TextMemberPath="Name"
                         DisplayMemberPath="Name"
                         ItemsSource="{Binding Employees}" />

Here, the DisplayMemberPath property is used to specify the name or path of the property displayed for each data item in the dropdown list. The TextMemberPath property gets the value to display in the selection box portion when an item is selected.

WinUI AutoComplete Displaying Items
WinUI AutoComplete Displaying Items

Conclusion

Thanks for reading! I hope you enjoyed learning about the new Syncfusion WinUI 3 AutoComplete control and its features. This control is available in our 2021 Volume 4 release. Check out our Release Notes and What’s New pages to see all the new updates in this release. Try them out and leave your feedback in the comments section below!

Also, you can check our WinUI control demos on GitHub and in the Microsoft Store.

For existing customers, the new version is available for download from the License and Downloads page. If you are not yet a Syncfusion customer, you can try our 30-day free trial to check out our newest features.

You can also contact us through our support forumssupport tickets, or feedback portal. We are always happy to assist you!

Related blogs

Tags:

Share this post:

Share on twitter
Share on facebook
Share on linkedin
Popular Now

Be the first to get updates

Subscribe RSS feed
Scroll To Top