Specifies the display state of an element.
Assembly: System.Windows (in System.Windows.dll)
Elements that have a Visibility value of do not occupy any layout space. By default, elements are .
WPF has a state of Hidden. Silverlight does not support the Hidden state. If you are migrating XAML UI definitions from WPF XAML, you will have to edit any cases that attempt to set a to Hidden.
Visibility in a Visual State
As part of defining visual states for a control, you will sometimes want to change the Visibility state of an object to Hidden. Visual states rely on animations. The property value type of UIElement.Visibility is , an enumeration. To animate values that are enumerations, you must use a DiscreteObjectKeyFrame.
The following XAML example shows a visual state that uses DiscreteObjectKeyFrame to change visibility.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.