Dragablz icon indicating copy to clipboard operation
Dragablz copied to clipboard

Window closes when the last Tab is closed

Open slow-down opened this issue 6 years ago • 5 comments

So say I have 3 tabs open right now and I close one after another. After closing all, I want to be able to still work with my window but it automatically closes... The tabs are not the only thing on my window. Is there a way to tell tabablz to not close the window when there are no tabs open? I need this as soon as possible, thanks 👍

slow-down avatar Aug 09 '18 13:08 slow-down

Anyone still active?? Please

slow-down avatar Aug 15 '18 07:08 slow-down

i propose to create a class inherited from TabablzControl. next, add a function to close the tab and designate it for the close button in style

ghost avatar Aug 16 '18 21:08 ghost

i propose to create a class inherited from TabablzControl. next, add a function to close the tab and designate it for the close button in style

could you post your code for learning? thank you.

lanmanck avatar Sep 19 '18 03:09 lanmanck

i propose to create a class inherited from TabablzControl. next, add a function to close the tab and designate it for the close button in style

could you post your code for learning? thank you.

https://github.com/oneLab-Projects/Andromeda-Studio-old2/tree/dev/Andromeda-Studio/Data/Controls/TabControl see an example in my old project in the class you need to inherit the TabItem and set as a header a specially designed UserControl

ghost avatar Sep 19 '18 07:09 ghost

you just have to write a custom IntertabClient and set the TabEmptiedResponse to TabEmptiedResponse.DoNothing :)

th851dan avatar Jun 05 '19 09:06 th851dan