sskodje / wpfchrometabs-mvvm

A tab control based on WPF chrome tabs, modified to work with the MVVM pattern
MIT License
256 stars 60 forks source link

Issue while Dock and UnDock quickly for main window: Tab Lost , as it is neither on Docking view nor on the main view #44

Open HT2207 opened 2 months ago

HT2207 commented 2 months ago

I am using your library with Nuget package since a year and it is perfect for my requirement But I found out that if I do Docking and Undocking quickly, it lost the Tab I attached video using your Demo

https://github.com/user-attachments/assets/32e2bf47-4f86-4657-a4d0-5cb3121224b5

Log lines are

1) has mouse capture=true 11:42 dragging window sendt close tab command 11:42 closed window 2) has mouse capture=true 11:42 dragging window sendt close tab command 11:42 closed window 3) has mouse capture=true 11:42 dragging window sendt close tab command 11:42 closed window 4) has mouse capture=true 11:42 dragging window sendt close tab command 11:42 closed window 5) has mouse capture=true 11:42 dragging window 11:42 closed window sendt close tab command

For the first (1) to (4) tries docking and undocking works perfectly fine BUT for the last time(5) when Tab Lost, last two log lines says that order of calling close Tab command is reversed compare to earlier tries from (1) to (4)

Please suggest a way to solve it