Class RotarySelector
Definition
- Namespace:
- ElmSharp.Wearable
- Assembly:
- ElmSharp.Wearable.dll
- API Level:
- preview
The RotarySelector is a widget to display a selector and multiple items surrounding the selector. An item can be selected by the Rotary event or user item click. Inherits Layout.
C#Copypublic class RotarySelector : Layout, IAccessibleObject
- Inheritance
- Implements
Constructors
View Source
RotarySelector(EvasObject)
Creates and initializes a new instance of the Rotary Selector class.
Declaration
C#Copypublic RotarySelector(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent | The parent of the new Rotary Selector instance. |
API Level: preview
Properties
Declaration
C#Copypublic Image BackgroundImage { get; set; }
Property Value
Type | Description |
---|---|
Image |
API Level: preview
Declaration
C#Copypublic IList<RotarySelectorItem> Items { get; }
Property Value
Type | Description |
---|---|
IList<RotarySelectorItem> |
API Level: preview
Declaration
C#Copypublic RotarySelectorItem SelectedItem { get; set; }
Property Value
Type | Description |
---|---|
RotarySelectorItem |
API Level: preview
Methods
Declaration
C#Copyprotected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent | Parent EvasObject. |
Returns
Type | Description |
---|---|
IntPtr | Handle IntPtr. |
Overrides
API Level: preview
Events
View Source
Clicked
Clicked will be triggered when selecting again the already selected item or selecting a selector.
Declaration
C#Copypublic event EventHandler<RotarySelectorItemEventArgs> Clicked
Event Type
Type | Description |
---|---|
EventHandler<RotarySelectorItemEventArgs> |
API Level: preview
Declaration
C#Copypublic event EventHandler<RotarySelectorItemEventArgs> Selected
Event Type
Type | Description |
---|---|
EventHandler<RotarySelectorItemEventArgs> |