AppearanceAttribute(String, AppearanceItemType, String) Constructor
Creates a new instance of the AppearanceAttribute using the specified parameters.
A string that is the unique identifier for the appearance rule created using the current attribute instance.
An AppearanceItemType enumeration value specifying the type of UI elements affected by the conditional appearance rule that is created using the current attribute instance.
A string that is the criterion for activation of the rule created using the current attribute instance.
This constructor sets the following attribute properties:
- AppearanceAttribute.Id is set to the value passed as the id parameter;
- AppearanceAttribute.AppearanceItemType is set to the value passed as the appearanceItemType parameter.
- AppearanceAttribute.Criteria is set to the value passed as the criteria parameter;
- AppearanceAttribute.Context is set to Any (a default value);
The remaining properties can be specified using the constructor's named parameters.
To learn how to define a rule using the Appearance attribute, refer to the Declare Conditional Appearance Rules in Code topic.