.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET 5.0+

ApplyAppearanceEventArgs.Item Property

A UI element whose appearance is about to be refreshed by applying the appropriate conditional appearance rules.

Namespace: DevExpress.ExpressApp.ConditionalAppearance

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

Declaration

public object Item { get; }

Property Value

Type Description
Object

An object representing a UI element to which a conditional appearance is currently applied.

Remarks

Use this property to access the UI element whose appearance is currently refreshed. To specify the name and type of this element, use the ApplyAppearanceEventArgs.ItemName and ApplyAppearanceEventArgs.ItemType properties.

To change the appearance of the item specified by this property, cast it by one of the following interfaces and use their properties and methods:

  • IAppearanceFormat

    Allows you to set the back color, font color and font style of the UI element supporting this interface.

  • IAppearanceEnabled

    Allows you to disable/enable the UI element supporting this interface.

  • IAppearanceVisibility

    Allows you to hide/show the UI element supporting this interface.

If these interfaces do not provide the required appearance settings, use the item’s properties directly. To learn which items can be affected by the AppearanceController, see the AppearanceController.CustomApplyAppearance event description.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Item property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also