Show / Hide Table of Contents

Class NativeDynamicItem<T>

Dynamic Items allow you to dynamically change the item shown to the user.

Inheritance
object
NativeItem
NativeSlidableItem
NativeDynamicItem<T>
Implements
IDrawable
Inherited Members
NativeSlidableItem.arrowLeft
NativeSlidableItem.arrowRight
NativeSlidableItem.LeftArrow
NativeSlidableItem.RightArrow
NativeSlidableItem.ArrowsAlwaysVisible
NativeItem.title
NativeItem.lastPosition
NativeItem.lastSize
NativeItem.lastSelected
NativeItem.badgeLeft
NativeItem.badgeRight
NativeItem.altTitle
NativeItem.OnSelected(object, SelectedEventArgs)
NativeItem.OnActivated(object)
NativeItem.Recalculate()
NativeItem.Enabled
NativeItem.Tag
NativeItem.Title
NativeItem.AltTitle
NativeItem.TitleFont
NativeItem.AltTitleFont
NativeItem.Description
NativeItem.LeftBadge
NativeItem.LeftBadgeSet
NativeItem.RightBadge
NativeItem.RightBadgeSet
NativeItem.Colors
NativeItem.Panel
NativeItem.UseCustomBackground
NativeItem.IsHovered
NativeItem.Selected
NativeItem.Activated
NativeItem.EnabledChanged
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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 Source

NativeDynamicItem(string)

Creates a new Dynamic List Item.

Declaration
public NativeDynamicItem(string title)
Parameters
Type Name Description
string title

The Title of the item.

View Source

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.

View Source

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.

View Source

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 Source

SelectedItem

The currently selected item.

Declaration
public T SelectedItem { get; set; }
Property Value
Type Description
T

Methods

View Source

Draw()

Draws the List on the screen.

Declaration
public override void Draw()
Overrides
NativeSlidableItem.Draw()
View Source

GoLeft()

Gets the previous item.

Declaration
public override void GoLeft()
Overrides
NativeSlidableItem.GoLeft()
View Source

GoRight()

Gets the next item.

Declaration
public override void GoRight()
Overrides
NativeSlidableItem.GoRight()
View Source

Recalculate(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
NativeSlidableItem.Recalculate(PointF, SizeF, bool)
View Source

UpdateColors()

Updates the colors of the LemonUI.Elements from the Colors ColorSet.

Declaration
public override void UpdateColors()
Overrides
NativeSlidableItem.UpdateColors()

Events

View Source

ItemChanged

Event triggered when the user has changed the item.

Declaration
public event ItemChangedEventHandler<T> ItemChanged
Event Type
Type Description
ItemChangedEventHandler<T>

Implements

IDrawable
  • View Source
In this article
Back to top Generated by DocFX