Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AppearanceAttribute.Visibility Property

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.v24.2.dll

#Declaration

public ViewItemVisibility Visibility { get; set; }

#Property Value

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 Web Forms and 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).

#Remarks

The following UI elements can be made invisible/visible:

  • Property Editors that are inherited from the PropertyEditor class;
  • Layout Items, Layout Groups and Tabbed Layout Groups;
  • Actions;
  • Data columns in a GridListEditor, ASPxGridListEditor, TreeListEditor and ASPxTreeListEditor when the appearance rule’s criterion doesn’t require information on the current View’s objects. So the criteria can be like “1=1” or a criteria using a Function Criteria Operator that is not based on the current object properties. This feature is considered as an unnatural scenario and 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 unhide 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. See these examples in the Feature Center demo installed with the XAF in the %PUBLIC%\Documents\DevExpress Demos 24.2\Components\XAF\FeatureCenter.NETFramework.XPO folder, or refer to the Feature Center demo online.

See Also