Ejemplo n.º 1
0
        public Task <IDisposable> NavigateToAsync(IViewModel viewModel)
        {
            var view = _viewLocator.ViewFor(viewModel);

            view.DataContext = viewModel;

            var activation = viewModel.Activate();

            _rootFrame.Content = view;

            return(Task.FromResult(activation));
        }