Skip to content

Image Button in a nested flex layout not rendering #24653

@AlthalusDGr8

Description

@AlthalusDGr8

Description

Trying to add an image button in a nest flex layout ends up not rendering anything. Image sources confirmed to exist. Another element (such as label) gets rendered correctly

Steps to Reproduce



    <FlexLayout Direction="Row" JustifyContent="SpaceBetween" AlignItems="Center">
        <Label Text="Nested FlexLayout - First Element" />
        <Label Text="Nested FlexLayout - Second Element" />
        <ImageButton Source="rock.png" WidthRequest="100" HeightRequest="100" CornerRadius="50" BackgroundColor="LightBlue" x:Name="btnNoShow">
            <ImageButton.Clip>
                <EllipseGeometry Center="50,50" RadiusX="50" RadiusY="50"/>
            </ImageButton.Clip>
        </ImageButton>
    </FlexLayout>

    <ImageButton Source="paper.png" WidthRequest="100" HeightRequest="100" CornerRadius="50" BackgroundColor="LightBlue"  x:Name="btnWorksOk">
        <ImageButton.Clip>
            <EllipseGeometry Center="50,50" RadiusX="50" RadiusY="50"/>
        </ImageButton.Clip>
    </ImageButton>

    <Label Text="Parent FlexLayout - Second Element" />
</FlexLayout>

Link to public reproduction project repository

No response

Version with bug

8.0.82 SR8.2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android, Windows

Affected platform versions

No response

Did you find any workaround?

Rendering the same content inside nested VerticalStackLayout and HorizontalStackLayout works well

Relevant log output

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterlayout-flexFlexLayout issuesplatform/androidplatform/windowss/triagedIssue has been reviewedt/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions