Get a property of a tabitem's viewmodel when it's selected
问题 I have a UserControl ParentView containing a DataGrid and a catel:TabControl , in which each TabItem is a tiny UserControl and whose ViewModel is a subclass of a BaseTabViewModel . This BaseTabViewModel contains a ObservableCollection of a custom class, whose properties will generate the columns of the DataGrid . Since I have only one DataGrid for all tabs, how can I fill it with the ObservableCollection of selected tab's viewmodel automatically? Right now, I just unload tabs ( LoadTabItems=