WPF: Hidden parent and visible child

Posted by oakskc on Stack Overflow See other posts from Stack Overflow or by oakskc
Published on 2010-04-26T16:17:40Z Indexed on 2010/04/26 16:23 UTC
Read the original article Hit count: 200

Filed under:

As of last night, I decided to start learning about WPF and have been reading through a number of online tutorials and books. This is a huge shift.

One feature that has fascinated me is the implicit property value inheritance. I know in the WinForms world, if a control is not visible then neither are any of the child controls. Same seems to be true in the WPF world, as expected. I wondered if explicitly setting the child control's Visibility property would allow for an invisible parent and visible child and it did not.

Is this something that would be possible in WPF? Can you have a container control that is hidden with visible children? This is more an exercise of curiosity than anything. I'm still trying to wrap my head around a lot of what I've been reading.

© Stack Overflow or respective owner

Related posts about wpf