I need to save data in distinct TabItem every time when user switches to another tabitem.
I try to operate TabControl.SelectionChanged event, but there is no info about previously selected tab item.
So, how to get moment when user switches from my TabItem to another?
You can make a global variable to store what is the last tab