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

LayoutAwareDecorator Class

Allows you to manage a control’s visibility in specific app states.

Namespace: DevExpress.UI.Xaml.Layout

Assembly: DevExpress.UI.Xaml.Layout.v18.2.dll

Declaration

public class LayoutAwareDecorator :
    veDecorator,
    ILayoutAwareControl

Remarks

The LayoutAwareDecorator manages the visibility of its immediate children in various app states. It cannot be used to control the visibility of its children’s children.

To display any control in a specific app state(s) and hide it in other states, you can wrap this control with the LayoutAwareDecorator and set the LayoutAwareDecorator.ViewStateVisibility attached property for this control to the required value.

If you do not explicitly set the LayoutAwareDecorator.ViewStateVisibility attached property for a control, the control’s visibility will be specified by the LayoutAwareDecorator.DefaultViewStateVisibility property.

Inheritance

Object
Windows.UI.Xaml.DependencyObject
Windows.UI.Xaml.UIElement
Windows.UI.Xaml.FrameworkElement
Windows.UI.Xaml.Controls.Panel
DevExpress.UI.Xaml.Layout.veDecorator
LayoutAwareDecorator
See Also