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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:00:22+00:00 2026-06-17T18:00:22+00:00

Very simple question. I have attached to the PreviewMouseLeftButtonDown event. I know this event

  • 0

Very simple question.

I have attached to the PreviewMouseLeftButtonDown event. I know this event Tunnels so the first item in the visual tree is going to get flagged as the e.OriginalSource.

Example:

I have a Grid named “MainGrid”. This Grid contains a label.

If I setup a PreviewMouseLeftButtonDown event on that grid and I click on the the label, the PreviewMouseLeftButtonDown event will be triggered.

The MouseButtonEventArgs for this contains an OriginalSource (e.OriginalSource). Depending on where I click inside of the label, this might be a border…this might be a textblock or this might be a border.

I want to walk the visual tree and find “MainGrid”. I know of the recursive ways to do this, but what if I don’t know the type of the owner. I only know I want to find the owner (i.e. this needs to be generic).

Something like “e.OriginalSource.ORIGINAL_OWNER”

Will gladly elaborate if this is not clear.

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-06-17T18:00:24+00:00Added an answer on June 17, 2026 at 6:00 pm

    It sounds like you are just looking for e.Source?

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

Sidebar

Related Questions

I know this is a very simple question but I have been struggling with
This is a very simple question yet I have little knowledge in Linux and
I have a very simple question, and I shouldn't be hung up on this,
very simple question, i have this: $datos1=mysql_query(SELECT TIMEDIFF(NOW(), ' . $row['fecha'] . ');); echo($datos1);
Very simple question I hope. I have the usual <select> box like this <select
very simple question, i have this: (only a part of the complete rss file)
Very simple question this time, basically I have a group of folders and some
This is probably a very simple question but I have a confusion about the
This is a very simple question: I have a string defined in my C#
I have a very simple question, but I'd like to know : When and

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.