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 7932523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:02:53+00:00 2026-06-03T21:02:53+00:00

I have a led panel which looks like this . This is built with

  • 0

I have a led panel which looks like this. This is built with a canvas object that contains a grid with columns and rows. Each field of that matrix contains a LED control which contains an ellipse.

Now I want to draw a line on the canvas. I think I am able to do that but how can I get all LED controls which are on that line?

  • 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-06-03T21:02:54+00:00Added an answer on June 3, 2026 at 9:02 pm

    Provided that you draw a System.Windows.Shapes.Line, you could get the Geometry of the Line by the RenderedGeometry property and use that Geometry as input for a geometry hit-test.

    Such a hit-test would be done by a call to VisualTreeHelper.HitTest with a GeometryHitTestParameters argument. HitTest would call your HitTestResultCallback for every ellipse that is covered by the line’s geometry.

    I am not completely sure whether geometry hit-testing would work with “empty” geometries like a line with zero width. But you could give it a try and in case it doesn’t work use for example a tilted rectangle geometry instead of the line. Or you could simulate the use of a Pen with a certain thickness by creating a “widened” geometry with Geometry.GetWidenedPathGeometry.

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

Sidebar

Related Questions

I've seen embedded boards before that have an LED that flashes like a heartbeat
I have 4 small LED icons which I use in my app to indicate
I have a scrolling LED sign that takes messages in either ASCII or (using
I have to do some different views containing 72 LED lights. I built an
I have been a really big fan of stackoverflow(which led me to ask the
Have 2 tables for example: In 1st: object & parent columns object | parent
I have no idea why this is happening; some Google searches have led me
I have a javascript widget which indicates the server status with alarm LED picture.
I have a Crystal report (version XI r3) that uses a SQL command object
I have been led to believe that the best point to bind your controls

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.