public class LayoutAwareDecorator :
Public Class LayoutAwareDecorator
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.