Class Picker<TItemType, TTitleType>
A Picker UI element with a title and a list of items.
Inheritance
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public abstract class Picker<TItemType, TTitleType> : Picker, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, INotifyValueChanged<IEnumerable<int>>, ISizeableElement, IPressable where TItemType : VisualElement, new() where TTitleType : VisualElement, new()
Type Parameters
Name | Description |
---|---|
TItemType | The type of the items contained in the Picker. |
TTitleType | The type of the title contained in the Picker. |
Constructors
Name | Description |
---|---|
Picker(IList, Func<TItemType>, Func<TTitleType>, Action<TItemType, int>, Action<TTitleType, IEnumerable<int>>, Action<TItemType, int>, int[]) | Default constructor. |
Properties
Name | Description |
---|---|
bindItem | The function used to bind a Picker item. |
bindTitle | The function used to bind a Picker title. |
makeItem | The function used to create a Picker item. |
makeTitle | The function used to create a Picker title. |
unbindItem | The function used to unbind a Picker item. |
Methods
Name | Description |
---|---|
GetPickerItem(int) | Get the Picker item at the given index. |
OnRequestItemCreation(int) | Create a Picker item. |
OnUnbindItem(VisualElement, int) | Unbind a Picker item. |
RefreshTitleUI() | Refresh the Picker title UI. |