expressappframework-devexpress-dot-expressapp-dot-conditionalappearance-dot-iappearanceruleproperties-9c070457.md
Specifies the Views in which the conditional appearance rule is in effect.
Namespace : DevExpress.ExpressApp.ConditionalAppearance
Assembly : DevExpress.Persistent.Base.v25.2.dll
NuGet Package : DevExpress.Persistent.Base
string Context { get; set; }
Property Context As String
| Type | Description |
|---|---|
| String |
A string that is semicolon separated names of the Views in which the conditional appearance rule is in effect.
|
The Context property can have the following values.
| Context | Appearance Rule’s Activity Scope | Example |
|---|---|---|
| A predefined context - “DetailView”, “ListView” or “Any”. | Detail Views, List Views or all Views, respectively. | Any |
| A semicolon-separated list of View identifiers. | Specified Views only. | MyClass_ListView;MyClass_DetailView |
| The “Any” predefined context, followed by a semicolon-separated list of View identifiers. | All Views except the Views specified via View identifiers. | Any;MyClass_ListView;MyClass_LookupListView |
| The “DetailView” or “ListView” predefined context, followed by a semicolon-separated list of View identifiers. | All Detail Views or List Views respectively, in addition to Views specified via View identifiers. | DetailView;MyClass_ListView |
See Also
Conditional Appearance (Manage UI State)
IAppearanceRuleProperties Interface