mgaffigan / WpfAppBar

AppBar implementation for WPF
MIT License
68 stars 10 forks source link

Undock after a window has been docked #3

Closed SConnely closed 3 years ago

SConnely commented 3 years ago

This is more like a Feature request.

Could we Undock the window and make it into a standard window object after it has been docked?

mgaffigan commented 3 years ago

@SConnely, happy to accept pull requests. Offhand, this would probably be easiest accomplished by having two Windows: one AppBarWindow and one Window. When you want to move between them, transfer Content from one to the other.

SConnely commented 3 years ago

Ok.. That would be an interesting approach, but wanted to be able to save state between the 2, but this may be possible by containerizing it.

Thanks for the input.

mgaffigan commented 3 years ago

This technique is how the Tab Control works. Apart from having to transfer things like window size and title, the rest of the visual tree should move fine. A 30 minute proof of concept is fairly optimistic (screenshot attached and added sample).

screenshotsmall

SConnely commented 3 years ago

Thanks for the sample. It is really appreciated..