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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:43:47+00:00 2026-05-30T22:43:47+00:00

I have a TabControl that allows users to manage documents such as the following:

  • 0

I have a TabControl that allows users to manage documents such as the following:

enter image description here

At some point, I want to add a feature that allows users to float TabItems and dock them back into the TabControl much along the lines of what you can do in Visual Studio. This feature will allow users to more easily compare documents and copy/paste between them, etc.

I have some general ideas on how to go about doing this. The TabControl has its ItemsSource bound to a list of document view models.

To float the tab:

  1. Add a Thumb control to the tab strip area of the TabItem.
  2. When the user drags the Thumb, the associated document view model is removed from the TabControl list.
  3. A separate document Window is brought up, bound with the document view model, to display/edit that document.

To dock the tab:

  1. Add a DragOver event handler in the TabControl to recognise a document Window dragging over the tab strip area.
  2. The associated document view model is added to the TabControl list.
  3. The document Window is closed.

Are there any examples out there on how to do this, or do you have an approach to do this?

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-30T22:43:48+00:00Added an answer on May 30, 2026 at 10:43 pm

    If you can’t find or don’t want to use a pre-existing control, I would highly recommend Bea Stollnitz’s article about dragging and dropping between databound controls. You will probably have to alter it a bit to work with a DockPanel to identify what DockPanel.Dock the databound object should use, however I’ve found the code easy to alter in the past.

    You would then setup two databound controls, such as a TabControl and a DockPanel, and when dragging/dropping between the two you are actually dragging/dropping the databound items between the ItemsSources.

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

Sidebar

Related Questions

I have a TabControl in WPF. I want to find an event that occurs
I have a WPF TabControl that I want to position the tabs with a
I have a WinForms TabControl that I am dynamically adding TabPages to at runtime.
I have a WPF TabControl that has a couple of buttons in the TabItem
I have a form that displays file information in a TabControl, and I'd like
I have a TabControl within a TabControl. I want the outer TabControl to show
I have a complex WPF control that for some reasons (ie. performance) is not
Hey. I have a tabcontrol that is bound to an observable collection. I've tried
I have noticed that if I have a TabControl in a Panel that has
I have a TabControl with two tabs containing lists that should always be scrolled

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.