Table of Contents

Method AddInput

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

AddInput<T>(object, IValueSource<object>?, CustomEventArgs?)

Adds item with the editor for the value of the specified type. Value is specified using IValueSource<T>.

public virtual PanelSettingsItem AddInput<T>(object label, IValueSource<object>? valueSource = null, CustomEventArgs? e = null)

Parameters

label object

Text which will be shown next to the editor.

valueSource IValueSource<object>

Source of the value. If Null an internal value container is used.

e CustomEventArgs

Additional arguments.

Returns

PanelSettingsItem

Type Parameters

T

Type of the value.

AddInput<T>(object, Func<T>, Action<T>, CustomEventArgs?)

Adds item with the editor for the value of the specified type. Value is specified using getter and setter delegates.

public virtual PanelSettingsItem AddInput<T>(object label, Func<T> getValue, Action<T> setValue, CustomEventArgs? e = null)

Parameters

label object

Text which will be shown next to the editor.

getValue Func<T>
setValue Action<T>
e CustomEventArgs

Additional arguments.

Returns

PanelSettingsItem

Type Parameters

T

Type of the value.

AddInput(object, object, string, CustomEventArgs?)

Adds item with the editor for the property of the specified object. Value is specified using property name and property container.

public virtual PanelSettingsItem AddInput(object label, object propContainer, string propName, CustomEventArgs? e = null)

Parameters

label object

Text which will be shown next to the editor.

propContainer object

Object which contains the property.

propName string

Property name.

e CustomEventArgs

Additional arguments.

Returns

PanelSettingsItem