Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
146241 | Jul 28,2019 04:24 AM UTC | Jul 29,2019 12:28 PM UTC | Xamarin.Forms | 2 |
![]() |
Tags: SfAutoComplete |
Xaml:
<autocomplete:SfAutoCompleteHeightRequest="40"DropDownTextSize="20"x:Name="autoComplete"AutoCompleteMode="Suggest"MaximumDropDownHeight="200"SuggestionMode="Custom"/>
C#:
public bool ContainingSpaceFilter(string search, object item) { string text = item.ToString().ToLower(); if (item != null) { if (!search.Contains(".")) { search = search.Insert(0, "."); } if (text.StartsWith(search.ToLower())) { return true; } } return false; } |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.