Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Shadows are not removed

DenisShevchenkoDenisShevchenko USMember ✭✭
edited August 2019 in Xamarin.Forms

After updating the project to Xamarin.Forms 4 and now shadows are displayed on all visual elements (StackLayout, FlexLayout, etc)

I tried to add Frame with HasShadow = "False", but the shadows are still not removed. However, I noticed that the shadows are removed if you do Background = "Transparent"



  • HarshitaHarshita INMember ✭✭✭✭

    set frame background color white

    you are setting frame background color is red.

  • LeonLuLeonLu Member, Xamarin Team Xamurai
    edited August 2019

    I upload all of my xamarin forms nuget package to

    I set HasShadow="true"

    I set HasShadow="false", it is worked as normal.

    If you still not work, please share your demo.

  • DenisShevchenkoDenisShevchenko USMember ✭✭

    @Harshita said:
    set frame background color white

    you are setting frame background color is red.

    The background color does not affect the shadow. I set white, the effect is the same. I noticed that if you set it transparent, then the shadow disappears

  • DenisShevchenkoDenisShevchenko USMember ✭✭

    The problem has not gone away. I also have Xamarin.Forms installed
    A very strange situation. This is not visible in all Views.
    Below you can see how Background affects the display of shadows.

    In image files with examples (image file names correspond to the color of the background of the example and code)

    Maybe it depends on the API level? On the real device, the same problem

  • DenisShevchenkoDenisShevchenko USMember ✭✭

    I want to tell you more, now and StackLayout shows shadows)) The complete nonsense!
    And other kinds of wrappers also display shadows: RelativeLayout, FlexLayout etc

    Xamarin.Forms will ever drive us all crazy!)

  • LeonLuLeonLu Member, Xamarin Team Xamurai

    Could you provide a demo that re-produce this issue?

Sign In or Register to comment.