Skaldebane
09/12/2024, 8:13 PMTabViewModel
for each individual tab, and then have a List<TabViewModel>
managed by a MainViewModel
which manages their creation, removal, and switching.
Is this a good approach to doing things? Consuming each tab's state from UI is a bit clunky, and I'm unsure about proper lifecycle management here (esp. for TabViewModels
that are essentially created and stored by the MainViewModel
(just using the constructor)), but I'd love to know if there's a better way of doing this.Daniel Pitts
09/12/2024, 9:32 PMSkaldebane
09/12/2024, 10:42 PM