public async Task NavigateModal(bool animated = true) { if (_navigationService == null) { throw new InvalidOperationException( "Cannot navigate without attaching an ViewModelNavigation. Call AttachTo first."); } await _navigationService.PushModalAsync(new Action <TViewModel, Page>(ActivateAction), animated); }