Skip to content

ImageButton Aspect is incorrect on Windows #22517

@mattleibow

Description

@mattleibow

Description

While working on #22298 I observed Windows is different. There are also 2 different types of differences: initial value and runtime changes:

Initial Values

Aspect Android iOS Windows
AspectFill ImageButtonUITests_Aspect_AspectFill ImageButtonUITests_Aspect_AspectFill ImageButtonUITests_Aspect_AspectFill
AspectFit ImageButtonUITests_Aspect_AspectFit ImageButtonUITests_Aspect_AspectFit ImageButtonUITests_Aspect_AspectFit
Center ImageButtonUITests_Aspect_Center ImageButtonUITests_Aspect_Center ImageButtonUITests_Aspect_Center
Fill ImageButtonUITests_Aspect_Fill ImageButtonUITests_Aspect_Fill ImageButtonUITests_Aspect_Fill

Runtime Changes

Aspect Android iOS Windows
AspectFill ImageButtonUITests_Aspect_State_AspectFill ImageButtonUITests_Aspect_State_AspectFill ImageButtonUITests_Aspect_State_AspectFill
AspectFit ImageButtonUITests_Aspect_State_AspectFit ImageButtonUITests_Aspect_State_AspectFit ImageButtonUITests_Aspect_State_AspectFit
Center ImageButtonUITests_Aspect_State_Center ImageButtonUITests_Aspect_State_Center ImageButtonUITests_Aspect_State_Center
Fill ImageButtonUITests_Aspect_State_Fill ImageButtonUITests_Aspect_State_Fill ImageButtonUITests_Aspect_State_Fill

Steps to Reproduce

Run the ImageButtonUITests or "Image Button Gallery" page.

Link to public reproduction project repository

No response

Version with bug

8.0.40 SR5

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

Windows, I was not able test on other platforms

Affected platform versions

No response

Did you find any workaround?

No response

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions