Skip to content

[regression/8.0.0] [Android] Border inside frame cause dont render content #18526

@DanielSCBO

Description

@DanielSCBO

Description

Hello, when i put border inside a Frame -> Grid -> Border the content is empty dont render

With border
Screenshot_1699193855

Without border
Screenshot_1699193823

XML Code

 <VerticalStackLayout
  Spacing="25"
  Padding="30,0"
  VerticalOptions="Center">
     <Frame>
         <Grid RowDefinitions="auto, auto, auto, auto">
             <Border Stroke="#C49B33"
                     StrokeThickness="4"
                     StrokeShape="RoundRectangle 40,0,0,40"
                     Background="#2B0B98"
                     Padding="16,8"
                     HorizontalOptions="Center" Grid.Row="0">
                 <Label Text=".NET MAUI"
                        TextColor="White"
                        FontSize="18"
                        FontAttributes="Bold" />
             </Border>

             <Label Grid.Row="1"
                      Text="Login"
                      FontSize="18"
                      HorizontalOptions="Center" />

             <Button Grid.Row="2"
                      Text="Login"
                      Clicked="OnLogin"
                      HorizontalOptions="Center" />

             <Button Grid.Row="3"
                     Text="Settings"
                  Clicked="OnSettings"
                  HorizontalOptions="Center" />
         </Grid>
     </Frame>
 </VerticalStackLayout>

Steps to Reproduce

  1. Create MAUI .NET 8 Project
  2. On page Add VerticalStackLayout, Frame, Grid, Border
  3. The content is not displayed

Link to public reproduction project repository

https://github.com/LaBoss/MAUITestes.git

Version with bug

8.0.0-rc.2.9511

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

7.0.96

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

Android 11

Did you find any workaround?

Dont use border

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions