Skip to content

This repository contains a sample demonstrating of customizing the dropdown's width in .NET MAUI AutoComplete.

SyncfusionExamples/How-to-customize-the-dropdowns-width-in-DOTNET-MAUI-AutoComplete-SfAutoComplete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

How-to-customize-the-dropdowns-width-in-.NET-MAUI-AutoComplete-SfAutoComplete

This repository contains a sample demonstrating of customizing the dropdown's width in the .NET MAUI AutoComplete.

DropdownWidth support in .NET MAUI AutoComplete (SfAutoComplete)

We can change the dropdown's width in SfAutoComplete by changing the DropdownWidth value.This DropdownWidth property allows to set a specific width for the dropdown list, ensuring that it fits the design requirements and improves the user experience.

The following code example illustrate how to set DropdownWidth in SfAutoComplete.

XAML

<editors:SfAutocomplete DropdownWidth="250"
                        HeightRequest="40"
                       WidthRequest="200">
    <editors:SfAutocomplete.ItemsSource>
        <x:Array Type="{x:Type x:String}">
            <x:String>Uganda</x:String>
            <x:String>Ukraine</x:String>
            <x:String>United States</x:String>
            <x:String>United Kingdom</x:String>
            <x:String>Uzbekistan</x:String>
        </x:Array>
    </editors:SfAutocomplete.ItemsSource>
</editors:SfAutocomplete>

About

This repository contains a sample demonstrating of customizing the dropdown's width in .NET MAUI AutoComplete.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages