I have a sample Xamarin Forms app (source located on GitHub here) where I need the dialog that pops when you click the button to center itself on the screen. Instead it is centering in its parent.
I read you can center a Popup by attaching it to the page level. And that works fine. But the BindingContext for the popup can't be set in this way.
Our app uses a ContentPage that is comprised of a bunch of ContentViews. And the ContentViews are the things that define the various popup dialogs (not the ContentPage). Furthermore, the BindingContext is set at the ContentView level. You can see an example of this in the code example I provided in the repo.
The repo defines a MainPage.xaml which hosts a ParentView which hosts a PopupView. It should be easy to follow the structure.
How can this sample be changed to show the dialog in the center of the screen?