Class EnumSettingDescriptor
Descriptor for a dropdown / combo-box setting. The Options list defines the available choices.
Inherited Members
Namespace: Zaya.Primitives
Assembly: Zaya.Primitives.dll
Syntax
public sealed class EnumSettingDescriptor : SettingDescriptor
Constructors
| Edit this page View SourceEnumSettingDescriptor(string, LocalizedString)
Initializes a new instance of the EnumSettingDescriptor class.
Declaration
public EnumSettingDescriptor(string key, LocalizedString displayName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | Machine-readable key for this setting. |
| LocalizedString | displayName | Localizable UI label. |
Properties
| Edit this page View SourceDefaultValue
Gets or sets the default selected option value (must match one of the Options values).
Declaration
public string? DefaultValue { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Options
Gets or sets the list of available choices for this setting.
Declaration
public IReadOnlyList<EnumOption> Options { get; init; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<EnumOption> |