ApplyAppearanceEventArgs.AppearanceObject Property
The appearance that is currently applied to the target UI element.
Namespace: DevExpress.ExpressApp.ConditionalAppearance
Assembly: DevExpress.ExpressApp.ConditionalAppearance.v22.1.dll
Declaration
Property Value
Type | Description |
---|---|
AppearanceObject | An AppearanceObject that specifies the appearance currently applied. |
Remarks
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AppearanceObject 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.