I have an AvalonDock
in my solution with fully MVVM
integrated. Everything works fine till now,
I used to switch between documents by pressing Ctrl+Tab] and it works as expected.
I have Binded the ActiveContent
to a property in my ViewModel
and when ever it switch the document it sets properly.
Issue: Now i have undocked my all documents and tried to switch between documents using Ctrl+Tab but this time its not working,
Whats happening:
I have a break point at my ActiveContent
Property, when i switch the document with Ctrl+Tab it get hit with correct document first, after that it again hits with the previous ActiveContent
and set back the focus to the old one as a result the selected document with Ctrl+Tab not getting the focus.
I hope some one can give me a solution.