Loading...
Searching...
No Matches
OFT.Attributes.VisibleWhenAttribute Class Reference

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...

Inheritance diagram for OFT.Attributes.VisibleWhenAttribute:
[legend]
Collaboration diagram for OFT.Attributes.VisibleWhenAttribute:
[legend]

Public Member Functions

 VisibleWhenAttribute (string propertyName, params object[] values)
 

Properties

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.
 

Detailed Description

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).

Constructor & Destructor Documentation

◆ VisibleWhenAttribute()

OFT.Attributes.VisibleWhenAttribute.VisibleWhenAttribute ( string  propertyName,
params object[]  values 
)
Parameters
propertyNameName of the source property whose value controls visibility.
valuesAllowed values of the source property for this property to be visible.

Property Documentation

◆ 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: