.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.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.v19.2.dll

Declaration

public object Item { get; }
Public ReadOnly Property Item As Object
public object Item { get; }
Public ReadOnly Property Item As Object
public object Item { get; }
Public ReadOnly Property Item As Object

Property Value

Type Description
Object

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

Property Value

Type Description
Object

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

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.

See Also