Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4047504
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:41:55+00:00 2026-05-20T13:41:55+00:00

I’m looking for ways to effectively determine if a control is actually visible and

  • 0

I’m looking for ways to effectively determine if a control is actually visible and clickable. I mean beyond checking Visibility property of the object.

I can check RenderSize and that would be [0,0] if any of the parent elements is collapsed. So this is simple too. I can also traverse up the visual tree and see if Opacity of all elements is set to 1.

What I don’t know how to check nicely are these scenarios:

  1. The object is obstructed by some other object. Obviously it’s possible to use FindElementsInHostCoordinates() and do computations to find out how much these objects obstruct but this could be an overkill. I can also make a “screenshot” of the object in question and “screenshot” of the whole page and check if pixels where my object should be match the actual object pixels. That sounds like an overkill too.
  2. The object is obstructed by a transparent object that still “swallows” clicks (taps). The workarounds for the first problem could still fail in this scenario.

Update (one more scenario)

  1. The object is out of bounds of the parent object/screen. Is there any other way to find this out except for lots of calculations?

Any better ideas? Do I miss something?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T13:41:56+00:00Added an answer on May 20, 2026 at 1:41 pm

    You can programatically test the Visiblity and the HitTestVisible property of an element, however beyond this you can’t actually test if a click event will be forwarded to the element or swallowed by elements on top of it – because blocking or forwarding clicks can happen in event handler methods which you simply can’t determine in a generic way.

    Take the following example:

    • You want to test if the ParentElement panel is clickable that has a ChildElement on it
    • ChildElement has an event handler attached to it that handles the click event, it’s visible and its HitTestVisible property is set to true.
    • Based on this you can’t yet decide if the event will be forwarded to ParentElement: in the click event handler of ChildElement it can set the event’s Handled property to true that would stop the ParentPanel receiving the event or it could leave it at false, making the ParentPanel receive the event.

    Thus if there are custom EventHandlers involved, you won’t be able to tell for certain whether an element is clickable or not. The most you can do is check the Visiblity and IsHitTestVisible properties on child and parent elements and check where the children / parents are rendered relative to each other using the TransformToVisual method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for suggestions for debugging... If you view this site in Firefox or
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.