Tuesday 29 January 2019

Change Color of IPhone X top and bottom using Xamarin Forms





protected override void OnAppearing()
        {
            base.OnAppearing();

            var safeAreaInset = On<iOS>().SafeAreaInsets();
            BgStack.Padding = safeAreaInset;
        }

You can put your page inside the stacklayout
 
<StackLayout x:Name="BgStack" BackgroundColor="#FF4D4D"></StackLayout>

Helpful link Link1 ,Link2

1 comment:

  1. Woah!! Such a piece of the nice information you have shared here, I have read the entire post and I must say that the information is very helpful for me.
    Xamarin Development services in Indore

    ReplyDelete

All About .NET MAUI

  What’s .NET MAUI? .NET MAUI (.NET Multi-platform App UI) is a framework for building modern, multi-platform, natively compiled iOS, Androi...

Ads2