Class NativeDynamicItem<T>
Dynamic Items allow you to dynamically change the item shown to the user.
Implements
Inherited Members
Namespace: LemonUI.Menus
Assembly: LemonUI.SHVDN3.dll
Syntax
public class NativeDynamicItem<T> : NativeSlidableItem, IDrawable
Type Parameters
| Name | Description |
|---|---|
| T | The type of item. |
Constructors
View SourceNativeDynamicItem(string)
Creates a new Dynamic List Item.
Declaration
public NativeDynamicItem(string title)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | The Title of the item. |
NativeDynamicItem(string, string)
Creates a new Dynamic List Item.
Declaration
public NativeDynamicItem(string title, string description)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | The Title of the item. |
| string | description | The Description of the item. |
NativeDynamicItem(string, string, T)
Creates a new Dynamic List Item.
Declaration
public NativeDynamicItem(string title, string description, T item)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | The Title of the item. |
| string | description | The Description of the item. |
| T | item | The Item to set. |
NativeDynamicItem(string, T)
Creates a new Dynamic List Item.
Declaration
public NativeDynamicItem(string title, T item)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | The Title of the item. |
| T | item | The Item to set. |
Properties
View SourceSelectedItem
The currently selected item.
Declaration
public T SelectedItem { get; set; }
Property Value
| Type | Description |
|---|---|
| T |
Methods
View SourceDraw()
Draws the List on the screen.
Declaration
public override void Draw()
Overrides
View SourceGoLeft()
Gets the previous item.
Declaration
public override void GoLeft()
Overrides
View SourceGoRight()
Gets the next item.
Declaration
public override void GoRight()
Overrides
View SourceRecalculate(PointF, SizeF, bool)
Recalculates the position of the current List Item.
Declaration
public override void Recalculate(PointF pos, SizeF size, bool selected)
Parameters
| Type | Name | Description |
|---|---|---|
| PointF | pos | The new position of the item. |
| SizeF | size | The Size of the item. |
| bool | selected | If the item is selected or not. |
Overrides
View SourceUpdateColors()
Updates the colors of the LemonUI.Elements from the Colors ColorSet.
Declaration
public override void UpdateColors()
Overrides
Events
View SourceItemChanged
Event triggered when the user has changed the item.
Declaration
public event ItemChangedEventHandler<T> ItemChanged
Event Type
| Type | Description |
|---|---|
| ItemChangedEventHandler<T> |