public override void OnNavigatedTo(NavigationContext navigationContext) { var parameter = navigationContext.Parameters.First(); //если документ исходящий if (Equals(parameter.Key, DocumentDirection.Outgoing.ToString())) { this.DocumentDetailsView.VisibilityAuthorDocument = Visibility.Collapsed; this.DocumentDetailsView.VisibilityTceNumberDocument = Visibility.Collapsed; } //если создаем документ if (navigationContext.Parameters.Count() == 1) { _viewModel.LoadCreate(parameter.Value as Document, parameter.Key); } //если редактируем документ else { _viewModel.LoadEdit(parameter.Value as Document); } this.Browser.Source = new Uri(_fileManagerService.GetPath(_viewModel.Item.Model)); base.OnNavigatedTo(navigationContext); }