Back to Devexpress

IAppearanceFormat Interface

expressappframework-devexpress-dot-expressapp-dot-editors-13805990.md

latest2.8 KB
Original Source

IAppearanceFormat Interface

Declares members implemented by the UI elements that can be formatted by a conditional appearance rule.

Namespace : DevExpress.ExpressApp.Editors

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public interface IAppearanceFormat :
    IAppearanceBase
vb
Public Interface IAppearanceFormat
    Inherits IAppearanceBase

Remarks

The Conditional Appearance module allows you format (highlight) different UI elements when they are displayed under certain conditions. To allow the AppearanceController to format UI elements, they should implement the IAppearanceFormat interface. This interface exposes the IAppearanceFormat.BackColor, IAppearanceFormat.FontColor and IAppearanceFormat.FontStyle properties, to get or set the appearance format, and the IAppearanceFormat.ResetBackColor, IAppearanceFormat.ResetFontColor and IAppearanceFormat.ResetFontStyle methods, to reset the appearance format to the required initial value.

This interface is already implemented by base classes representing built-in XAF Detail View Items, Layout Items and auxiliary adapters that provide access to List Editor cells. Implement the IAppearanceFormat interface in a custom class representing a UI element so that this element can also be formatted by the AppearanceController.

See Also

IAppearanceFormat Members

IAppearanceEnabled

IAppearanceVisibility

DevExpress.ExpressApp.Editors Namespace