question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding new shadow property to frame not working

See original GitHub issue

Description

Adding the new shadow property to a frame doesn’t do anything.

Steps to Reproduce

This is the xaml -

<ContentView Grid.Row="0"
            Margin="20"
            HorizontalOptions="Center"
            VerticalOptions="End">
    <Frame Padding="0"
        CornerRadius="30"
        HasShadow="False"
        HeightRequest="50">
        <Frame.Background>
            <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
                <GradientStop Offset="0.0" Color="#0ED473" />
                <GradientStop Offset="1.0" Color="#17CC54" />
            </LinearGradientBrush>
        </Frame.Background>
        <Frame.Shadow>
            <Shadow Brush="red"
                Opacity="1"
                Radius="10"
                Offset="20,20" />
        </Frame.Shadow>
        <HorizontalStackLayout HorizontalOptions="Fill" VerticalOptions="Fill">

            <Label Grid.Column="1"
                Margin="10"
                FontFamily="LASolid"
                FontSize="30"
                HeightRequest="30"
                HorizontalOptions="CenterAndExpand"
                HorizontalTextAlignment="Center"
                Text="&#xf04b;"
                TextColor="White"
                VerticalOptions="Center"
                WidthRequest="50" />
            <Label Grid.Column="1"
                Margin="10"
                FontFamily="LASolid"
                FontSize="30"
                HeightRequest="30"
                HorizontalOptions="CenterAndExpand"
                HorizontalTextAlignment="Center"
                Text="&#xf067;"
                TextColor="White"
                VerticalOptions="Center"
                WidthRequest="50">
                <Label.GestureRecognizers>
                    <TapGestureRecognizer Tapped="AddExcersie_Tapped" />
                </Label.GestureRecognizers>
            </Label>
        </HorizontalStackLayout>
    </Frame>
</ContentView>

Version with bug

Release Candidate 3 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

Android 11

Did you find any workaround?

No response

Relevant log output

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
IeuanWalkercommented, Jul 19, 2022

Any news on this?

You can use the border control instead

0reactions
XamlTestcommented, May 5, 2023

Verified this on Visual Studio Enterprise 17.6.0 Preview 6.0. Repro on Windows 11 and Android emulator (13.0-API 33) with below Project: 7209.zip

image

If use Border control instead of Frame, shadow works well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue with Entity Framework 7 Shadow Property
The problem is that for subsequent DbContexts all shadows properties are NULL, and so far I cannot see anyway to get it loaded....
Read more >
Customising Frame shadow in Xamarin Forms. Everything ...
recently i was working on Xamarin Forms Frames shadow. Hope you know about Frame. It is an UI element which has some good...
Read more >
Shadow Effect Problem
Hi, Having a strange bug(?). When adding a drop shadow effect to a component, the 'spread' property is disabled (greyed out).
Read more >
Shadow - .NET MAUI
NET MAUI) Shadow class paints a shadow around a layout or view. The VisualElement class has a Shadow bindable property, of type Shadow...
Read more >
Shadow and Indexer Properties - EF Core
Configuring shadow and indexer properties in an Entity Framework Core ... existing property rather than introducing a new shadow property.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found