Difference between Popup's IsOpen and Visibility properties?

Posted by cfouche on Stack Overflow See other posts from Stack Overflow or by cfouche
Published on 2010-03-17T08:11:26Z Indexed on 2010/03/19 2:01 UTC
Read the original article Hit count: 306

Filed under:
|
|
|

I've played around with the WPF Popup Control and as far as I can see, the Visibility property is superfluous.

If you have a Popup with IsOpen = True, it will be visible even if its Visibility = Collapsed.

If you have a Popup with IsOpen = False, then its Visibility will be Collapsed, and will remain "Collapsed" when IsOpen changes to true, and it will appear. (i.e. you'll have something that appears on your screen, even though Snoop says it is Collapsed.)

Why does the Popup control have both these properties? Am I missing something here?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about beginner