Skip to content

Commit

Permalink
Merge pull request #1868 from PrismLibrary/shelldialog
Browse files Browse the repository at this point in the history
Support Shell for Dialogs
  • Loading branch information
dansiegel committed Aug 2, 2019
2 parents ef3d803 + dafde8a commit ff8da00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Xamarin/Prism.Forms/Services/Dialogs/DialogService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ private ContentPage GetCurrentPage(Page page = null)
case MasterDetailPage mdp:
mdp.IsPresented = false;
return GetCurrentPage(mdp.Detail);
case Shell shell:
return GetCurrentPage((shell.CurrentItem.CurrentItem as IShellSectionController).PresentedPage);
default:
// If we get some random Page Type
if(page != null)
Expand Down

0 comments on commit ff8da00

Please sign in to comment.