It's similar to a radio buttons (or checkbox list if MultiSelect is set to True).


Keywords
android, ios, windows, xamarin, zebble
License
Other
Install
Install-Package Zebble.OptionsList -Version 3.15.128

Documentation

Zebble.OptionsList

logo

A Zebble plugin to allows you add an option list from a source.

NuGet

With this plugin you can add single and multiple selection list from a data source and add some action to do when they selected or not.


Setup


Api Usage

To use this plugin in markup or c# code you can use below code:

<OptionsList Id="MyOptionsList" Direction="Vertical" MultiSelect="true" />
await Add(new OptionsList { Id = "MyOptionsList", Direction = RepeatDirection.Vertical, MultiSelect = true });

Data source:

You can set the DataSource property (either in markup or C#) to populate the options list. The data source can be any IEnumerable object.

<OptionsList ... DataSource="GetSource() />

C# code-behind:

IEnumerable<Contacts> GetMyOptions()
{
     ....
}

Properties

Property Type Android iOS Windows
Source OptionsDataSource x x x
List OptionsListView x x x
Value Object x x x
DataSource IEnumerable<object> x x x
MultiSelect bool x x x
Direction RepeatDirection x x x

Events

Event Type Android iOS Windows
SelectedItemChanged AsyncEvent<Option> x x x