Skip to main content

LayoutAwareDecorator Class

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

Namespace: DevExpress.UI.Xaml.Layout

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

NuGet Package: DevExpress.Uwp.Controls

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
DependencyObject
Windows.UI.Xaml.UIElement
FrameworkElement
Windows.UI.Xaml.Controls.Panel
DevExpress.UI.Xaml.Layout.veDecorator
LayoutAwareDecorator
See Also