Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to figure out when control is visible to user?

$
0
0

I would like to know how to figure out when a control is visbile to user and when not?

Let says I am writing a custom control which extends a TextBox and I would like to know when is visible to do some custom logic inside the handler triggered on visible changed.

How to do so? How to figure out if the control is visible to user or not? The custom control which extends a TextBox could be inside a Button for instance and Button could receiveVisibility.Collapsed so all its inner nested controls would be invisibe and thats what I want to know. How to figure out if visible no matter what value to Visibility property is set?


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>