Reputation: 1636
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.
Upvotes: 2
Views: 2237
Reputation: 31
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);
}
Upvotes: 3