Class Picker
Picker UI element.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public abstract class Picker : ExVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, INotifyValueChanged<IEnumerable<int>>, ISizeableElement, IPressable
  Constructors
| Name | Description | 
|---|---|
| Picker() | Default constructor.  | 
      
| Picker(IList, int[]) | Construct a Picker UI element with a provided dynamic collection of items.  | 
      
Fields
| Name | Description | 
|---|---|
| appuiPickerMenu | The Picker menu styling class.  | 
      
| caretUssClassName | The Picker caret styling class.  | 
      
| emphasizedUssClassName | The Picker emphasized mode styling class.  | 
      
| m_Items | |
| m_TitleContainer | |
| m_Value | |
| sizeUssClassName | The Picker size styling class.  | 
      
| titleContainerUssClassName | The Picker title container styling class.  | 
      
| titleUssClassName | The Picker title styling class.  | 
      
| trailingContainerUssClassName | The Picker trailing container styling class.  | 
      
| ussClassName | The Picker main styling class.  | 
      
Properties
| Name | Description | 
|---|---|
| clickable | Clickable Manipulator for this Picker.  | 
      
| closeOnSelection | Close the picker menu automatically when an item is selected.  | 
      
| defaultMessage | The Picker default message when no item is selected.  | 
      
| defaultValue | The Picker default value. This is the value that will be selected if no value is set.  | 
      
| emphasized | The Picker emphasized mode.  | 
      
| selectedIndex | Quick access to the currently selected index for a Picker in Single selection mode.  | 
      
| selectionType | The Picker selection type.  | 
      
| size | The Picker size.  | 
      
| sourceItems | The source items collection.  | 
      
| value | The Picker value. This is the index of the selected item.  | 
      
Methods
| Name | Description | 
|---|---|
| OnRequestItemCreation(int) | |
| OnUnbindItem(VisualElement, int) | |
| Refresh() | Refresh the Picker UI.  | 
      
| RefreshListUI() | |
| RefreshTitleUI() | |
| RefreshUI() | |
| SetValueWithoutNotify(IEnumerable<int>) | Set the Picker value without notifying any listeners.  |