Пример #1
0
        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();
        }
Пример #2
0
 /// <inheritdoc/>
 public TabHost Build(PageViewModel viewModel)
 {
     return(Application.Current.Dispatcher.Invoke(() =>
                                                  new TabHost(viewModel, _resolver.ResolveVisual(viewModel))));
 }