I have a TabGroupPane with 3 tabs in it. Since each tab shows a different UserControl, and my usercontrols are backed by ViewModels, I need to know in each VM if it's tab is currently active or not.
Basically, I dont want hidden viewmodels to do any work if something is selected in my application.
Ideally I would have a property in each VM, IsActiveTab that gets updated on tab changes. Maybe I just need to make this a DP and bind it to the SelectedItem?
Not sure what is the best way to do this...
Thanks!
Perhaps someone else will have a suggestion with an approach they use but perhaps the easier thing to do would be to just base it on the IsVisible property of your view/control?