Picker<TItem>
A menu-style selection button wrapping
UIButton + UIMenu.| Type parameter | Summary |
|---|---|
(class) TItem | The item type. |
Properties
ItemTitle
How an item is labeled in the menu. Defaults to ToString().
ItemsSource
The selectable items.
Live when the list is an
ObservableCollection.
Type: BindableList<TItem>
Kind
The picker's native button style.
Type: ButtonStyle
Padding
Padding around the title and indicator, or null for the size class default.
Type: Thickness?
Placeholder
Text shown when nothing is selected.
SelectedItem
The selected item, or null for none.
Type: Bindable<TItem?>
SelectionChanged
Invoked with the newly selected item.
Type: Action<TItem>?
ShowsIndicator
Whether a popup indicator appears after the selected item's title.
Type: bool
Size
The built-in size class.
Type: ButtonSize