Class CustomParameter
An alternative implementation of Phoenix.Views.Parameters.ParameterInfo for customizable UI controls.
Inherited Members
Namespace: Phoenix.BotBrain.Parameters
Assembly: Phoenix.Plugin.BotBrain.Parameters.dll
Syntax
public class CustomParameter : BindableBase, INotifyPropertyChanged, IEditableParameter, IParameter
Properties
View SourceComment
Gets the comment for the parameter.
Declaration
public string? Comment { get; set; }
Property Value
Type | Description |
---|---|
string |
CustomDisplayType
Gets or sets the custom display type specified in metadata.
Declaration
public string? CustomDisplayType { get; set; }
Property Value
Type | Description |
---|---|
string |
DefaultValue
Gets the default parameter value.
Declaration
public object? DefaultValue { get; }
Property Value
Type | Description |
---|---|
object |
DisplayName
Gets the display name for the parameter.
Declaration
public string? DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string |
DisplayType
Gets the display type for the parameter.
Declaration
public ParameterDisplayType DisplayType { get; }
Property Value
Type | Description |
---|---|
ParameterDisplayType |
Name
Gets the name of the parameter.
Declaration
public string? Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Value
Gets or sets the value of the parameter.
Declaration
public object? Value { get; set; }
Property Value
Type | Description |
---|---|
object |
ValueType
Gets the expected type of the parameter value.
Declaration
public Type? ValueType { get; }
Property Value
Type | Description |
---|---|
Type |
Methods
View SourceUpdateValue(Action<object?>)
Updates the property value and raises a property changed event.
Declaration
public void UpdateValue(Action<object?> change)
Parameters
Type | Name | Description |
---|---|---|
Action<object> | change | Updates the value. |
Implements
Phoenix.Views.Parameters.IEditableParameter
Phoenix.Views.Parameters.IParameter