Skip to content

Frame's IsClippedToBounds default value behavior is incorrect on Android. #15029

Open

Description

Description

Even though I didn't explicitly specify the IsClippedToBounds value for Frame,
it behaves as True on Android.

I tested with the following layout.

<Grid RowDefinitions="*,150,*" ColumnDefinitions="*,150,*">
    <Frame x:Name="frm" Grid.Row="1" Grid.Column="1" CornerRadius="20" HasShadow="False" Padding="0">
        <Grid BackgroundColor="SkyBlue" />
    </Frame>
</Grid>

[Android]

Screenshot_1683783027

[iOS]

2023-05-11_02-36-41-午後

I checked the default value after calling the InitializeComponent method and it is False for both Android and iOS.
Android behavior seems to be incorrect. I was expecting non-clipped behavior because Frame's IsClippedToBounds
default value is False.

Steps to Reproduce

The steps to reproduce are as follows.

  1. Launch the app uploaded to github on your Android

In step 1, the Grid clipped by Frame is drawn on the screen.

Link to public reproduction project repository

https://github.com/cat0363/Maui-IssueFrameClip.git

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 11.0

Did you find any workaround?

Explicitly specify a value for IsClippedToBounds.

Relevant log output

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions