ApplyAppearanceEventArgs.ItemType Property
The type of the target UI element. Its appearance is refreshed when you apply conditional appearance rules.
Namespace: DevExpress.ExpressApp.ConditionalAppearance
Assembly: DevExpress.ExpressApp.ConditionalAppearance.v25.2.dll
NuGet Package: DevExpress.ExpressApp.ConditionalAppearance
Declaration
Property Value
| Type | Description |
|---|---|
| String | A string that specifies the type of the target UI element when you apply conditional appearance rules. |
Remarks
The Conditional Appearance module applies conditional appearance rules to different UI elements. You identify these elements by their appearance item types.
| UI Element | AppearanceItemType |
|---|---|
| **Cells in the List View that a GridListEditor or TreeListEditor displays. | AppearanceItemType.ViewItem |
| Property Editors | AppearanceItemType.ViewItem |
| Static Text | AppearanceItemType.ViewItem |
| Layout Items, Groups, and Tabs | AppearanceItemType.LayoutItem |
| Actions | AppearanceItemType.Action |
The ItemType property returns a string that specifies the type of the target UI element.
If you apply a conditional appearance rule to an item with a custom type, you need a custom Controller. The Controller calls the AppearanceController.RefreshItemAppearance method when needed. The custom Controller passes the custom item type to the Appearance Controller. You receive the value in the ItemType property when you handle the AppearanceController.CustomApplyAppearance or AppearanceController.AppearanceApplied event.