May 02, 2013
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
Dependency property identifier field: VisibilityProperty
Elements where is not Visible do not participate in input events, are not in a tab sequence (cannot be focused), and are excluded during hit testing.
The value of IsHitTestVisible is ignored when an object is not set to Visible. IsHitTestVisible is a settable property that enables you to disable hit testing for objects that would otherwise be hit testable by virtue of the and Background property values.
Windows Phone does not support a Visibilty value of Hidden.
For more information on the XAML syntax, see Visibility.
Visibility in a Visual State
As part of defining visual states for a control, you will sometimes want to change the state of an object to Collapsed. Visual states rely on animations. The property value type of is Visibility, an enumeration. To animate values that are enumerations, you must use a DiscreteObjectKeyFrame. (You also use this technique for Boolean values).
The following XAML example shows a visual state that uses DiscreteObjectKeyFrame to change visibility.