Exportar (0) Imprimir
Expandir todo

UIElement.IsVisible (Propiedad)

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

Espacio de nombres: System.Windows
Ensamblado: PresentationCore (en presentationcore.dll)
Espacio de nombres XML:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public bool IsVisible { get; }
/** @property */
public boolean get_IsVisible ()

public function get IsVisible () : boolean

No se puede utilizar esta propiedad en XAML.

Valor de propiedad

true if the element is visible; otherwise, false.

Identifier field

IsVisibleProperty

Metadata properties set to true

None

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.

Changes to the value of this property will typically raise the IsVisibleChanged event. There is no matching Microsoft .NET "On*" class handling override method that would allow some derived class to override that behavior and handle the event, but a class handler could still be attached directly with RegisterClassHandler.

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.

IsVisible is not intended to be used as a style trigger. Using IsVisible as a style trigger might have unpredicable results. IsVisible is intended for state checking by lower level input implementations.

Microsoft .NET Framework 3.0 es compatible con Windows Vista, Microsoft Windows XP SP2 y Windows Server 2003 SP1.

.NET Framework

Compatible con: 3.0

Adiciones de comunidad

AGREGAR
Mostrar:
© 2015 Microsoft