WPF: browser breaks

I have an application consisting of a set of tabs. Each tab has independent user control.

Currently, users can click the "New Window" button. This button creates a new form and moves the user control from the current tab to the new form.

Instead of a button, users would like to simply drag the tab from the current window, as in web browsers. How can I do it?

+4
source share
1 answer

It doesn't seem too trivial to expect a complete solution here, but ... who knows :)

Some thoughts: start by enabling drag and drop tabs. When the user drags the tab β€œenough” away from its original location, you remove the tab from its beginning and create a new window (or some other user interface to show its drag and drop) containing the contents of the tab.

When the tab is discarded, create a new window (or use "drag and drop") and configure it as the user expects it.

+1
source

Source: https://habr.com/ru/post/1301172/


All Articles