You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MAUI/Autocomplete/Basic-Features.md
+7-4
Original file line number
Diff line number
Diff line change
@@ -17,16 +17,19 @@ The [.NET MAUI Autocomplete](https://help.syncfusion.com/cr/maui/Syncfusion.Maui
17
17
{% highlight xaml %}
18
18
19
19
<editors:SfAutocomplete x:Name="autocomplete"
20
-
WidthRequest="250"
21
20
DisplayMemberPath = "Name"
22
21
TextMemberPath = "Name"
23
22
ItemsSource="{Binding SocialMedias}" />
24
23
25
24
{% endhighlight %}
26
25
{% highlight C# %}
27
26
28
-
autocomplete.DisplayMemberPath = "Name";
29
-
autocomplete.TextMemberPath = "Name";
27
+
SfAutocomplete autocomplete = new SfAutocomplete()
28
+
{
29
+
DisplayMemberPath = "Name",
30
+
TextMemberPath = "Name",
31
+
ItemsSource = socialMediaViewModel.SocialMedias,
32
+
};
30
33
31
34
{% endhighlight %}
32
35
{% endtabs %}
@@ -37,4 +40,4 @@ The following image illustrates the output:
37
40
38
41
## Text
39
42
40
-
The [Text](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.DropDownControls.DropDownListBase.html#Syncfusion_Maui_Inputs_DropDownControls_DropDownListBase_Text) property is used to get the user-submitted text in the [SfAutoComplete](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.SfAutocomplete.html). The default value of the `Text` property is `string.Empty`.
43
+
The [Text](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.DropDownControls.DropDownListBase.html#Syncfusion_Maui_Inputs_DropDownControls_DropDownListBase_Text) property is used to get the user-submitted text in the [SfAutocomplete](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.SfAutocomplete.html). The default value of the `Text` property is `string.Empty`.
0 commit comments