Back to Devexpress

IAppearanceRuleProperties.TargetItems Property

expressappframework-devexpress-dot-expressapp-dot-conditionalappearance-dot-iappearanceruleproperties-2a3c3c77.md

latest3.2 KB
Original Source

IAppearanceRuleProperties.TargetItems Property

Specifies the identifiers of UI elements affected by the conditional appearance rule.

Namespace : DevExpress.ExpressApp.ConditionalAppearance

Assembly : DevExpress.Persistent.Base.v25.2.dll

NuGet Package : DevExpress.Persistent.Base

Declaration

csharp
[Required]
string TargetItems { get; set; }
vb
<Required>
Property TargetItems As String

Property Value

TypeDescription
String

A string consisting of semicolon separated identifiers of the UI elements affected by the conditional appearance rule.

|

Remarks

In Detail Views, identifiers, passed to the TargetItems property are Id property values of the Application Model nodes that correspond to the UI elements (e.g., IModelMember, IModelLayoutItem, IModelAction, etc.). In List Views, these identifiers are property names.

You can specify several UI elements of the type specified via the IAppearanceRuleProperties.AppearanceItemType property to be affected by the conditional appearance rule. See the possible variants for specifying the TargetItems value in the following table:

ExampleDescription
“TargetElementId”An identifier of the individual target element. The element with the “TargetElementId” identifier is affected.
“TargetElementId1;TargetElementId2”A semicolon-separated list of target element identifiers. The listed elements are affected.
“*“An asterisk (*) wildcard. All elements are affected.
“*;TargetElementId1;TargetElementId2”An asterisk (*) wildcard, followed by a semicolon-separated list of target element identifiers. All elements, except for those listed, are affected.

Note

You cannot specify “all Actions” via the “*“ wildcard. To specify several Actions, list their identifiers explicitly. When the AppearanceItemType is Action , the asterisk sign is interpreted as a reference to an Action that has the “*“ identifier.

See Also

Conditional Appearance (Manage UI State)

IAppearanceRuleProperties Interface

IAppearanceRuleProperties Members

DevExpress.ExpressApp.ConditionalAppearance Namespace