Back to Devexpress

AppearanceAttribute Class

expressappframework-devexpress-dot-expressapp-dot-conditionalappearance-9256fe6e.md

latest2.7 KB
Original Source

AppearanceAttribute Class

Applied to business classes and their properties. Declares a conditional appearance rule.

Namespace : DevExpress.ExpressApp.ConditionalAppearance

Assembly : DevExpress.Persistent.Base.v25.2.dll

NuGet Package : DevExpress.Persistent.Base

Declaration

csharp
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Interface, AllowMultiple = true)]
public class AppearanceAttribute :
    Attribute,
    IAppearanceRuleProperties,
    IAppearance
vb
<AttributeUsage(AttributeTargets.Class Or AttributeTargets.Method Or AttributeTargets.Property Or AttributeTargets.Interface, AllowMultiple:=True)>
Public Class AppearanceAttribute
    Inherits Attribute
    Implements IAppearanceRuleProperties,
               IAppearance

Remarks

The Appearance attribute is declared in the Conditional Appearance Module. This module allows you to disable/enable, show/hide and change the look and feel of properties in List Views, Property Editors, Layout Items, Layout Groups and Actions based on business rules. The Appearance attribute is used to declare these business rules. The Declare Conditional Appearance Rules in Code topic contains a detailed explanation on how to use this attribute.

Implements

IAppearanceRuleProperties

IAppearance

Inheritance

Object Attribute AppearanceAttribute

See Also

AppearanceAttribute Members

Conditional Appearance (Manage UI State)

Disable and Hide Property Editors Based on a Business Rule

DevExpress.ExpressApp.ConditionalAppearance Namespace