I am trying to create a popOverPage with transparent light black background color.. I set the background color to transparent color then also I am not able to see the previous page content...
I did something like this
var popOverPage = new PopOverPage();
Navigation.PushModalAsync(popOverPage);
And then on the nextPage.
BackgroundColor = Color.Transparent;
But its not working.. It's showing background as white. Can You Please guide me how to do this.
使用rotorgames的Rg.Plugins.Popup库,它对于您正在寻找的需求非常有用。
I did something like this in my project and that has worked pretty great, but it only works if you are using PushModalAsync() otherwise it just creates a solid background.
protected override void OnAppearing()
{
base.OnAppearing();
BackgroundColor = new Color(0, 0, 0, 0.5);
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.