.NET Framework Class Library
UIElementIsVisible Property

Gets a value indicating whether this element is visible in the user interface (UI). This is a dependency property.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)
Syntax
Public ReadOnly Property IsVisible As [%$TOPIC/ms588738_en-us_VS_110_1_0_0_0_0%]
public [%$TOPIC/ms588738_en-us_VS_110_1_0_1_0_0%] IsVisible { get; }
public:
property [%$TOPIC/ms588738_en-us_VS_110_1_0_2_0_0%] IsVisible {
	[%$TOPIC/ms588738_en-us_VS_110_1_0_2_0_1%] get ();
}
member IsVisible : [%$TOPIC/ms588738_en-us_VS_110_1_0_3_0_0%] with get
function get IsVisible () : [%$TOPIC/ms588738_en-us_VS_110_1_0_4_0_0%]

Property Value

Type: SystemBoolean
true if the element is visible; otherwise, false.
Dependency Property Information

Identifier field

IsVisibleProperty

Metadata properties set to true

None

Remarks

Determination of the IsVisible value takes all factors of layout into account. In contrast, Visibility, which is a settable property, only indicates the intention to programmatically make an element visible or invisible.

Elements where IsVisible is false do not participate in input events (or commands), do not influence either the measure or arrange passes of layout, are not focusable, are not in a tab sequence, and will not be reported in hit testing. In contrast, elements where IsEnabled is false will still participate in events and commands, and hit testing, but are also not focusable.

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1