A newer version of this page is available. Switch to the current version.

IAppearance.Visibility Property

Specifies the visibility of UI elements affected by a conditional appearance rule.

Namespace: DevExpress.ExpressApp.ConditionalAppearance

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

Declaration

ViewItemVisibility? Visibility { get; set; }

Property Value

Type Description
Nullable<ViewItemVisibility>

A Nullable<ViewItemVisibility> enumeration value specifying the visibility of UI elements affected by a 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 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

For details on how the Visibility property affects the UI, see the AppearanceAttribute.Visibility member description.

To change the Visibility value in code, access the required Property Editor instance and then cast it to the IAppearance type. Most of built-in Property Editors support this interface.

using DevExpress.ExpressApp.Editors;
// ...
((IAppearanceVisibility)thePropertyEditor).Visibility = ViewItemVisibility.Hide;
See Also