Class Dropdown<TItemType, TView>
Inheritance
Dropdown<TItemType, TView>
Assembly: Ritchie.Toolbox.dll
public abstract class Dropdown<TItemType, TView> : Widget, IFontFamilyProvider, IInspectable, IMouseClickHandler, IGainFocusHandler, ILoseFocusHandler, IDragStartHandler, IMouseHandler where TView : DropdownItemView<TItemType>, new()
Type Parameters
Name |
Description |
TItemType |
|
TView |
|
Constructors
Declaration
Properties
Declaration
public ICollection<TItemType> Items { get; }
Property Value
PlaceholderTExt
Declaration
public string PlaceholderTExt { get; set; }
Property Value
Declaration
public int SelectedIndex { get; set; }
Property Value
Methods
ArrangeChildren(IGuiContext, LayoutRect)
Declaration
protected override void ArrangeChildren(IGuiContext context, LayoutRect availableSpace)
Parameters
Overrides
GetContentSize(Point)
Declaration
protected override Point GetContentSize(Point availableSize)
Parameters
Type |
Name |
Description |
Point |
availableSize |
|
Returns
Overrides
Declaration
public void OnDragStart(MouseButtonEvent e)
Parameters
Declaration
public void OnFocusGained(FocusEvent e)
Parameters
Declaration
public void OnFocusLost(FocusEvent e)
Parameters
Declaration
public void OnMouseClick(MouseButtonEvent e)
Parameters
Declaration
public void SetItems(IEnumerable<TItemType> itemSource)
Parameters
Type |
Name |
Description |
IEnumerable<TItemType> |
itemSource |
|
Events
Declaration
public event Action<int>? SelectedIndexChanged
Event Type
Implements
Extension Methods