Table of Contents

Class PanelSettings

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

Implements panel with settings. Each settings panel item is a labeled control which allows to edit individual setting. Items are declared using logical definitions (for example, boolean setting or string setting) and are not bound to the specific controls.

public class PanelSettings : HiddenBorder, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, ILayoutItem, INotifyDataErrorInfo
Inheritance
PanelSettings
Implements

Constructors

PanelSettings()

Initializes a new instance of the PanelSettings class.

Fields

DefaultAllowComboBoxMouseWheel

Gets or sets a value indicating whether the ComboBox mouse wheel is allowed by default when it is used in the PanelSettings.

DefaultHorizontalLineMargin

Gets or sets default horizontal line margin.

DefaultLabelToTextMargin

Gets or sets default distance between label and text.

DefaultSpacerSize

Gets or sets default spacer size. Real spacer size equals to this value plus MinChildMargin of the container.

Properties

AutoCreate

Gets or sets whether controls are automatically created and updated when items are changed.

Methods

AddButton(object, ItemActionDelegate?, CustomEventArgs?)

Adds item with the button.

AddButton(object, Action?, CustomEventArgs?)

Adds item with the button.

AddHorizontalLine(CustomEventArgs?)

Adds horizontal line.

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.

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

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

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.

AddLabel(object, CustomEventArgs?)

Adds item with the generic text label.

AddLinkLabel(object, ItemActionDelegate?, CustomEventArgs?)

Adds item with the link label.

AddLinkLabel(object, Action?, CustomEventArgs?)

Adds item with the link label.

AddSelector<T>(object, IEnumerable<T>, IValueSource<object>?, CustomEventArgs?)

Adds item with the editor for the nullable value of the specified type.

AddSpacer(CustomEventArgs?)

Adds item with an empty space.

CreateItemCore(object, PanelSettingsItemKind, IValueSource<object>?, CustomEventArgs?)

Creates item with the specified parameters.

DefaultItemToButtonControl(PanelSettingsItem, object?)

Default conversion method from Button item to the appropriate control.

DefaultItemToEditableSelector(PanelSettingsItem, object?)

Default conversion method from EditableSelector item to the appropriate control.

DefaultItemToEnumControl(PanelSettingsItem, object?)

Default conversion method from Enum item to the appropriate control.

DefaultItemToLabelControl(PanelSettingsItem, object?)

Default conversion method from Label item to the appropriate control.

DefaultItemToLineControl(PanelSettingsItem, object?)

Default conversion method from Line item to the appropriate control.

DefaultItemToLinkLabelControl(PanelSettingsItem, object?)

Default conversion method from LinkLabel item to the appropriate control.

DefaultItemToSelectorControl(PanelSettingsItem, object?)

Default conversion method from Selector item to the appropriate control.

DefaultItemToSpacerControl(PanelSettingsItem, object?)

Default conversion method from Spacer item to the appropriate control.

DefaultItemToValueControl(PanelSettingsItem, object?)

Default conversion method from Value item to the appropriate control.

GetRegisteredConversion(PanelSettingsItemKind, UIPlatformKind)

Gets registered function which is called when item is converted to the control.

ItemInserted(object?, int, PanelSettingsItem)

Called when item is added to the Items collection.

ItemRemoved(object?, int, PanelSettingsItem)

Called when item is removed from the Items collection.

RegisterConversion(PanelSettingsItemKind, ItemToControlDelegate?, UIPlatformKind)

Registers function which is called when item is converted to the control.

RegisterDefaultConversions(RegisterConversionDelegate)

Registers default conversions in the specified register.