.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

IAppearanceRuleProperties.Context Property

Specifies the Views in which the conditional appearance rule is in effect.

Namespace: DevExpress.ExpressApp.ConditionalAppearance

Assembly: DevExpress.Persistent.Base.v21.1.dll

Declaration

[TypeConverter(typeof(AppearanceContextTypeConverter))]
string Context { get; set; }

Property Value

Type Description
String

A string that is semicolon separated names of the Views in which the conditional appearance rule is in effect.

Remarks

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