Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

dropdown list text being cut

$
0
0

i dont know if its ok to ask here but i dont know where to ask this question.
i having a problem with autosuggestbox nugget from morten

https://www.nuget.org/packages/dotMorten.Xamarin.Forms.AutoSuggestBox

dropdown list being cut on the end of text.

heres my code :

entry = new AutoSuggestBox
{
PlaceholderText="suggest",
PlaceholderTextColor= Color.Blue,
};

        entry.DisplayMemberPath = "text";
        entry.TextChanged += Entry_TextChanged;

tableDataResult = new List {
new tableData { code = 0, text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio"}, };

private void Entry_TextChanged(object sender, AutoSuggestBoxTextChangedEventArgs e)
{
AutoSuggestBox box = (AutoSuggestBox)sender;
box.ItemsSource = GetSuggestions(box.Text);
}

private List GetSuggestions(string text)
{
return string.IsNullOrWhiteSpace(text) ? null : tableDataResult.Where(s => s.text.StartsWith(text, StringComparison.CurrentCultureIgnoreCase)).ToList();
}

can someone help me?
thanks in advance


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>