Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IAppearanceRuleProperties.Context Property

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

Namespace: DevExpress.ExpressApp.ConditionalAppearance

Assembly: DevExpress.Persistent.Base.v24.2.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