ButchersBoy / Dragablz

Dragable and tearable tab control for WPF
http://dragablz.net
MIT License
2.17k stars 321 forks source link

Detect if a tab was closed by user (not dragged out) #186

Open BornToBeRoot opened 6 years ago

BornToBeRoot commented 6 years ago

Hello,

you have a great control...

I try to detect if a user closed the tab via the button in the header and fire a command on the content viewmodel.

I tried to implement IDisposable with CollectionChanged on the source list, but this will only work on the main TabControl and is always fired when dragging out a tab.

Any ideas?

Thanks!