Skip to main content
A newer version of this page is available. .

AppearanceObject.Visibility Property

Specifies a visibility state for the target UI element.

Namespace: DevExpress.ExpressApp.ConditionalAppearance

Assembly: DevExpress.ExpressApp.ConditionalAppearance.v19.1.dll

Declaration

public ViewItemVisibility? Visibility { get; set; }

Property Value

Type Description
Nullable<ViewItemVisibility>

true, to make the target UI element visible; false, to make it invisible.

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 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

If there are conditional appearance rules that change the visibility state within the rules appropriate for the target UI element, the AppearanceObject‘s Visibility property returns the visibility state specified by the rule with the higher priority (see IAppearance.Priority). If there are no rules that change the visibility state, the Visibility property returns null (Nothing in VB).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Visibility 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.

See Also