私が使用している一般的な解決策は、これは、たとえば、内部のすべてのフォームでStackLayoutを作成し、それを現在使用しているページの子を挿入することで解決するために使用することです:
PopupPage popUp; //This will be the layout of the form
Page : ContentPage {
var gird = new Gird();
popUp = PopupPage();
popUp.IsVisible = false;
var mainContainer = new StackLayout();
mainContainer.Children.Add(All you UI stuff..);
var btn = new Button();
btn.Clicked += OnButtonClicked;
grid.Children.Add(mainContainer,0,0);
grid.Children.Add(popUp,0,0);
}
So in order to show the popoUP you need to play with the IsVisible property, for example:
void OnButtonClicked(){
//You can center the popup using Vertical options or whatever you need
//and to resize the pop up you can do different calculations like
//popUp.Width = ScreenWidth/2 and popUp.Height = ScreenWidth/2
popUp.IsVisile = true;
}
そして、これはすべてのプラットフォームで動作し、唯一の欠点は、あなたが透明なレイアウトを持っていないということですが、そのためにあなたが使用することができます。
https://github.com/gaborv/xam-forms-transparent-modal
助けてくれてありがとうが、この場合はuwpの実装が必要です。 –
[Rg.Plugins.Popup](https://github.com/rotorgames/Rg.Plugins.Popup) プレリリース(1.0.0-pre1)は既にWinPhoneとUWPをサポートしています。 ベータテストに参加することを喜んでお待ちしています。 – user1658602