ApplyAppearanceEventArgs.AppearanceObject Property

The appearance that is currently applied to the target UI element.

Namespace: DevExpress.ExpressApp.ConditionalAppearance

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

Declaration

public AppearanceObject AppearanceObject { get; }
Public ReadOnly Property AppearanceObject As AppearanceObject

Property Value

Type Description
AppearanceObject

An AppearanceObject that specifies the appearance currently applied.

You can customize the appearance to be applied to a certain range of items by changing the object returned by the AppearanceObject property in the AppearanceController.CustomApplyAppearance event handler. For this purpose, use the object's AppearanceObject.Enabled, AppearanceObject.Visibility, AppearanceObject.BackColor, AppearanceObject.FontColor and AppearanceObject.FontStyle properties. But in this instance, do not set the CustomApplyAppearanceEventArgs.Handled event handler parameter to true, to apply the customized appearance to the target items.

When you get the object specified by the AppearanceObject property in the AppearanceController.AppearanceApplied event handler, you can only view the appearance that has been just applied to the target item. To change the appearance applied, access the target item using the ApplyAppearanceEventArgs.Item property.

See Also