AppearanceObject.Visibility Property
Specifies a visibility state for the target UI element.
Namespace: DevExpress.ExpressApp.ConditionalAppearance
Assembly: DevExpress.ExpressApp.ConditionalAppearance.v24.2.dll
NuGet Package: DevExpress.ExpressApp.ConditionalAppearance
#Declaration
public ViewItemVisibility? Visibility { get; set; }
#Property Value
Type | Description |
---|---|
Nullable<View |
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. |
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
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).
#Related GitHub Examples
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.