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

  • Home
  • SEARCH
  • 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 873293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:54:33+00:00 2026-05-15T10:54:33+00:00

To give the ability to display and edit Richtext (Xaml) inside a treeview item,I

  • 0

To give the ability to display and edit Richtext (Xaml) inside a treeview item,I have used a bindable Richtextbox (custom user control that used a richtextbox) to the HierachicalDataTemplate that used to populate the TreeViewItems.

This works fine but at the same time I want to have the drag and grop functionality in the treeview. My problem is when I click on the richtextbox (inside the treeviewitem) and do a drag it will do the richtextbox content dragging. What I want is to drag the treeviewitem insted (fire the drag and drop events of the treeviewitem).
NOTE: If I used a textblock this can be done but can’t display richtext. Any Help?

  • 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-15T10:54:34+00:00Added an answer on May 15, 2026 at 10:54 am

    Trigger your drag from the on the “Preview” mouse events rather than the regular ones, and set the Handled flag in PreviewMouseMove when doing a drag so the RichTextBox never sees the MouseMove.

    For example, you might record the mouse down location in PreviewMouseLeftButtonDown, then if you receive a PreviewMouseMove with the left button still down you can set e.Handled=true and then call DoDragDrop in a dispatcher callback.

    The reason this works is that RichTextBox uses the regular (non-preview) mouse events.

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

Sidebar

Related Questions

I have a tree control and I want to give the user the ability
I have WPF Application. I want to give ability for user by checkbox to
I'd like to be able to give my users the ability to display their
Question 1 - I'm wanting to give the user the ability to reset their
I'd like to give my users the ability to rate each item on the
For a user generated content website, I want to give ability to my users
I want to give my users the ability to choose how their public page
I have an application that uses Swing. The display I am working on, uses
I have an image I display on my website. Which is written in c#.
I have a website where the user requires to add and remove Headlines from

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.