Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Actual Visibility in WPF

In WPF an element can have a Visibility of "Visible", but not be actually visible on the screen because it's parent (or parent of parent) has Visibility of Collapsed.

I want to be able to know if a element is actually rendered on the screen, without having to traverse up the visual tree checking parents.

Does anyone know of a way to accomplish this?

Thanks in advance!

like image 869
Chris Nicol Avatar asked Oct 26 '11 18:10

Chris Nicol


1 Answers

I'm not sure where you are intending to check this but you can use the IsVisible property.

like image 130
AndrewS Avatar answered Sep 25 '22 00:09

AndrewS