private void AddVisualPage(object?sender, ValueEventArgs <PageViewModel> e) { var s = _resolver.ResolveVisual(e.Value); _openPages.Add(e.Value, _tabRoot.Page = _tabRoot.AppendPage(s, new Label(e.Value.Title))); s.Show(); }
/// <inheritdoc/> public TabHost Build(PageViewModel viewModel) { return(Application.Current.Dispatcher.Invoke(() => new TabHost(viewModel, _resolver.ResolveVisual(viewModel)))); }