Skip to main content
.NET 6.0+

ApplyAppearanceEventArgs.ItemType Property

The type of the UI element whose appearance is about to be refreshed by applying conditional appearance rules.

Namespace: DevExpress.ExpressApp.ConditionalAppearance

Assembly: DevExpress.ExpressApp.ConditionalAppearance.v23.2.dll

Declaration

public string ItemType { get; }

Property Value

Type Description
String

A string that is the type of the target UI element whose conditional appearance is refreshed.

Remarks

The Conditional Appearance module allows you to apply a conditional appearance to different UI elements. They are differentiated by the following appearance item types:

UI element AppearanceItemType
Cells in the List View represented by a GridListEditor, ASPxGridListEditor, TreeListEditor or ASPxTreeListEditor AppearanceItemType.ViewItem
Property Editors AppearanceItemType.ViewItem
Static Text AppearanceItemType.ViewItem
Layout Items, Groups and Tabs AppearanceItemType.LayoutItem
Actions AppearanceItemType.Action

The ItemType property specifies a sting representation of one of these appearance item types.

If you apply a conditional appearance rule to an item of a custom type, there should be a custom Controller that invokes the AppearanceController.RefreshItemAppearance method when required. In this instance, the custom item type is passed to the Appearance Controller and you get it as a value of the ItemType property when handling the AppearanceController.CustomApplyAppearance or AppearanceController.AppearanceApplied event.

See Also