IAppearance.Visibility Property
Specifies the visibility of UI elements affected by a conditional appearance rule.
Namespace: DevExpress.ExpressApp.ConditionalAppearance
Assembly: DevExpress.Persistent.Base.v24.2.dll
NuGet Package: DevExpress.Persistent.Base
#Declaration
ViewItemVisibility? Visibility { get; set; }
#Property Value
Type | Description |
---|---|
Nullable<View |
A Nullable<View |
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. |
Show |
Specifies that empty space is displayed instead of UI elements affected by a conditional appearance rule, when Appearance |
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;