Skip to content

Commit 96293c6

Browse files
committed
Updated AutoComplete sample.
1 parent 57743a0 commit 96293c6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,24 @@
11
# How-to-customize-the-dropdowns-width-in-DOTNET-MAUI-AutoComplete-SfAutoComplete
22
This repository contains a sample demonstrating of customizing the dropdown's width in .NET MAUI AutoComplete
3+
## DropdownPlacement support in .NET MAUI AutoComplete (SfAutoComplete)
4+
We can change the dropdown's width in SfAutoComplete by changing the DropdownWidth value.
5+
6+
The following code example illustrate how to set DropdownWidth in SfAutoComplete.
7+
8+
**XAML**
9+
```
10+
<editors:SfAutocomplete DropdownWidth="250"
11+
HeightRequest="40"
12+
WidthRequest="200">
13+
<editors:SfAutocomplete.ItemsSource>
14+
<x:Array Type="{x:Type x:String}">
15+
<x:String>Uganda</x:String>
16+
<x:String>Ukraine</x:String>
17+
<x:String>United States</x:String>
18+
<x:String>United Kingdom</x:String>
19+
<x:String>Uzbekistan</x:String>
20+
</x:Array>
21+
</editors:SfAutocomplete.ItemsSource>
22+
</editors:SfAutocomplete>
23+
24+
```

0 commit comments

Comments
 (0)