Class AllowedValuesModel
The model for setting allowed values
Inheritance
System.Object
AllowedValuesModel
Namespace: Phoenix.Settings
Assembly: Phoenix.Abstractions.Settings.dll
Syntax
public class AllowedValuesModel : BindableBase
Constructors
View SourceAllowedValuesModel()
Initializes a new instance of the AllowedValuesModel class.
Declaration
public AllowedValuesModel()
AllowedValuesModel(IEnumerable, Object, Object)
Initializes a new instance of the AllowedValuesModel class.
Declaration
public AllowedValuesModel(IEnumerable values = null, object minimum = null, object maximum = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | values | The allowed value options |
System.Object | minimum | The minimum value |
System.Object | maximum | The maximum value |
Properties
View SourceHasValues
Gets a value indicating whether or not there are values for the property.
Declaration
public bool HasValues { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Maximum
Gets or sets the maximum value for the property.
Declaration
public object Maximum { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Minimum
Gets or sets the minimum value for the property.
Declaration
public object Minimum { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Values
Gets or sets the values that are allowed for the property.
Declaration
public IEnumerable Values { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.IEnumerable |