Quantcast
Viewing all articles
Browse latest Browse all 77050

ANNOUNCING: ComboBox and Floating Label Entry for iOS and Android

Hey folks, just wanted to let you all know that I've open sourced my Material Entry and AutoComplete (called ComboBox) today. Take a look and use it if you like.

note: only for Android and iOS at the moment
note: Android requires an AppCompat Theme

> Install-Package xfx.controls

The repo can be found on github

Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

<xfx:XfxEntry Placeholder="Enter your name"
              Text="{Binding Name}"
              ErrorText="{Binding NameErrorText}" />


<xfx:XfxComboBox Placeholder="Enter your email address"
                Text="{Binding EmailAddress}"
                ItemsSource="{Binding EmailSuggestions}"
                SortingAlgorithm="{Binding SortingAlgorithm}"/>
// here's an example of how to do the SortingAlgorithm
public class MyViewModel : INotifyPropertyChanged
{
    public Func<string, ICollection<string>, ICollection<string>> SortingAlgorithm { get; } = (text, values) => values
        .Where(x => x.ToLower().StartsWith(text.ToLower()))
        .OrderBy(x => x)
        .ToList();
}

Viewing all articles
Browse latest Browse all 77050

Trending Articles



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