expressappframework-devexpress-dot-expressapp-dot-conditionalappearance-dot-appearanceattribute-897859e0.md
Specifies the visibility of UI elements affected by the conditional appearance rule generated from this attribute instance.
Namespace : DevExpress.ExpressApp.ConditionalAppearance
Assembly : DevExpress.Persistent.Base.v25.2.dll
NuGet Package : DevExpress.Persistent.Base
public ViewItemVisibility Visibility { get; set; }
Public Property Visibility As ViewItemVisibility
| Type | Description |
|---|---|
| ViewItemVisibility |
A ViewItemVisibility enumeration value specifying the visibility of UI elements affected by the conditional appearance rule.
|
Available values:
| Name | Description |
|---|---|
| Hide |
Specifies that UI elements affected by a conditional appearance rule are hidden, and the Detail View’s layout is rearranged.
| | ShowEmptySpace |
Specifies that empty space is displayed instead of UI elements affected by a conditional appearance rule, when AppearanceAttribute.AppearanceItemType is set to ViewItem or LayoutItem. In XAF ASP.NET Core Blazor applications, this mode functions like the ViewItemVisibility.Hide mode.
| | Show |
Specifies that UI elements affected by a conditional appearance rule remain visible (has effect in List View only).
|
The following UI elements can be made invisible/visible:
GridListEditor, DxGridListEditor, TreeListEditor, and DxTreeListEditor when the appearance rule’s criterion does not depend on the current object (for example, 1=1 or an expression that uses a Function Criteria Operator without referencing the current object’s properties). This scenario is described in the Conditional Appearance Module Overview topic.Note
The Show value of the Visibility property has effect in List Views only, when it is required to display a column (see the Show and Hide List View Columns section of the Conditional Appearance Module Overview topic).
You can find many examples in the Declare Conditional Appearance Rules in Code topic.
Tip
You can find examples of this functionality in the MainDemo demo included with XAF. The demo illustrates various XAF features (including Appearance attribute) and is located in the %PUBLIC%\Documents\DevExpress Demos 25.2\Components\XAF\MainDemo.NET.EFCore folder.
See Also