PickerExtensions
Namespace: Hex1b
Assembly: Hex1b.dll
Extension methods for creating Picker widgets.
csharp
public static class PickerExtensionsInheritance
Object → PickerExtensions
Methods
Picker<TParent>(WidgetContext<TParent>, IReadOnlyList<string>, int)
Creates a picker widget with the specified items and initial selection.
Parameters:
ctx(WidgetContext<<TParent>>): The widget context.items(IReadOnlyList<String>): The list of items to choose from.initialSelectedIndex(Int32): The initial selected index.
Returns: PickerWidget
A new PickerWidget.
csharp
public static PickerWidget Picker<TParent>(this WidgetContext<TParent> ctx, IReadOnlyList<string> items, int initialSelectedIndex) where TParent : Hex1bWidgetPicker<TParent>(WidgetContext<TParent>, IReadOnlyList<string>)
Creates a picker widget with the specified items.
Parameters:
ctx(WidgetContext<<TParent>>): The widget context.items(IReadOnlyList<String>): The list of items to choose from.
Returns: PickerWidget
A new PickerWidget.
csharp
public static PickerWidget Picker<TParent>(this WidgetContext<TParent> ctx, IReadOnlyList<string> items) where TParent : Hex1bWidgetPicker<TParent>(WidgetContext<TParent>, params string[])
Creates a picker widget with the specified items.
Parameters:
ctx(WidgetContext<<TParent>>): The widget context.items(String[]): The items to choose from.
Returns: PickerWidget
A new PickerWidget.
csharp
public static PickerWidget Picker<TParent>(this WidgetContext<TParent> ctx, params string[] items) where TParent : Hex1bWidget