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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:05:31+00:00 2026-06-07T21:05:31+00:00

Does anybody know how to capture a click on a TextMarker in an IWpfTextView?

  • 0

Does anybody know how to capture a click on a TextMarker in an IWpfTextView? I want to have this functionality in the XML editor, to allow CTRL+Click on certain nodes. The specific nodes can be highlighted now, but there is not an “OnClick” event on a Textmarker.

See also:

http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.text.tagging.textmarkertag.aspx

  • 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-07T21:05:33+00:00Added an answer on June 7, 2026 at 9:05 pm

    There’s no event on a TextMarker, you are correct. What you want to do is implement and MEF export an IMouseProcessor, and in the appropriate methods see if you’re within a span you care about. There’s a class MouseProcessorBase you can derive from to make your implementation a bit less irritating.

    Noah Richards’ GoToDef sample which implements Ctrl+Click in a very similar way like you are trying to do here. The code is up at https://github.com/NoahRic/GoToDef. I’d strongly recommend you take a look at it.

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

Sidebar

Related Questions

Does anybody know how to capture the message that a sender sends the recipient
Does anybody know why this function, when passed an invalid date (e.g. timestamp) to
Does anybody know how to programmatically disable the keyboard individual letter pop-up? (This blue
Does anybody know a Perl library that can parse XML documents and enables me
Does anybody know a way in express.js to capture requests in a single function
Does anybody know whether this can be achieved in jQuery. Target/addClass to the last
Does anybody know how to fix this error: System.Data.Edm.EdmEntityType: : EntityType 'BlogTags' has no
Does anybody know how to determine whether a certain git commit, for example this
Does anybody know what this error message means, when I go to Report->Check Dependencies:
Does anybody know when $(#submit).on(click, function(){ came out. Meaning what version of Jquery started

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.