Class TextSetting
Setting that takes a text string
Implements
Inherited Members
Namespace: Phoenix.Devices
Assembly: Phoenix.Devices.Xbox.dll
Syntax
public class TextSetting : XboxConfigSetting, IDataErrorInfo
Constructors
View SourceTextSetting(String, String, Boolean)
Initializes a new instance of the TextSetting class.
Declaration
public TextSetting(string friendlyName, string initialValue, bool hasNonMatchingProperties)
Parameters
Type | Name | Description |
---|---|---|
System.String | friendlyName | The user-friendly name of the setting. |
System.String | initialValue | The initial value of the setting. |
System.Boolean | hasNonMatchingProperties | Whether or not the setting has non matching properties among the selected devices |
TextSetting(String, String, Boolean, Func<String, ValidationResult>)
Initializes a new instance of the TextSetting class.
Declaration
public TextSetting(string friendlyName, string initialValue, bool hasNonMatchingProperties, Func<string, ValidationResult> validator)
Parameters
Type | Name | Description |
---|---|---|
System.String | friendlyName | The user-friendly name of the setting. |
System.String | initialValue | The initial value of the setting. |
System.Boolean | hasNonMatchingProperties | Whether or not the setting has non matching properties among the selected devices |
System.Func<System.String, System.Windows.Controls.ValidationResult> | validator | The method validating the setting. |
Properties
View SourceError
Gets an error message indicating what is wrong with this setting.
Declaration
public string Error { get; }
Property Value
Type | Description |
---|---|
System.String |
Item[String]
Gets the error message for the property with the given name.
Declaration
public virtual string this[string columnName] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | columnName | Name of the property whose error message to get |
Property Value
Type | Description |
---|---|
System.String | Error message for the property, or string.Empty if there is no error |
Validator
Gets the method for validating this setting.
Declaration
public Func<string, ValidationResult> Validator { get; }
Property Value
Type | Description |
---|---|
System.Func<System.String, System.Windows.Controls.ValidationResult> |
Value
Gets or sets the value of this setting.
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.String |