SafeAreaLayoutGuide in xamarin.form for iOS

EthanPhoenixEthanPhoenix USMember ✭✭
edited October 2017 in Xamarin.Forms

Hi, how to implement the SafeAreaLayoutGuide for iPhone X? In landscape mode the controls on the right appear under the top notch. I don't see any documentation on the new SafeAreaLayoutGuide property. Can this be specified for a stacklayout?

Thanks

Best Answer

Answers

  • jb_tcjb_tc USMember ✭✭

    Did you find a solution? I need this too @EthanPhoenix

  • EthanPhoenixEthanPhoenix USMember ✭✭

    No, I didn't find a solution yet. For now I just disabled the landscape orientation.

  • EthanPhoenixEthanPhoenix USMember ✭✭

    Thanks, it looks like it's adding padding on left and right but the problem is that the page dark background is now pushed and you end up with 2 white blocks one on the left and one on the right and also the bottom. Is there a way to make the page background take up the whole screen?

  • EthanPhoenixEthanPhoenix USMember ✭✭

    Pre Iphone X I am able to set the page background like this:
    Content.SetDynamicResource(StackLayout.StyleProperty, "PageBackground");

    For anyone having this same issue of page background being pushed because of the safe area, then you have to set the page background on the actual page.

Sign In or Register to comment.