O'Reilly logo

XAML Unleashed by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Visibility

Visibility (defined on UIElement) might sound like a strange property to talk about in the context of layout, but it is indeed relevant in the case of WPF. In WPF, an element’s Visibility property actually isn’t Boolean but rather a three-state Visibility enumeration. Its values and meanings are as follows:

Image Visible—The element is rendered and participates in layout.

Image Collapsed—The element is invisible and does not participate in layout.

Hidden—The element is invisible yet still participates in layout.

A Collapsed element effectively ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required