Makes the property visible only when the specified source property's value matches one of the provided values. Used for dynamic property visibility in the settings UI (e.g., showing/hiding properties based on a mode enum).
More...
|
| string | PropertyName [get] |
| | Name of the source property whose value determines visibility.
|
| |
| object[] | Values [get] |
| | The set of values for which this property is visible. If the source property's current value is in this set, the property is shown.
|
| |
Makes the property visible only when the specified source property's value matches one of the provided values. Used for dynamic property visibility in the settings UI (e.g., showing/hiding properties based on a mode enum).
◆ VisibleWhenAttribute()
| OFT.Attributes.VisibleWhenAttribute.VisibleWhenAttribute |
( |
string |
propertyName, |
|
|
params object[] |
values |
|
) |
| |
- Parameters
-
| propertyName | Name of the source property whose value controls visibility. |
| values | Allowed values of the source property for this property to be visible. |
◆ PropertyName
| string OFT.Attributes.VisibleWhenAttribute.PropertyName |
|
get |
Name of the source property whose value determines visibility.
◆ Values
| object [] OFT.Attributes.VisibleWhenAttribute.Values |
|
get |
The set of values for which this property is visible. If the source property's current value is in this set, the property is shown.
The documentation for this class was generated from the following file: