dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.28k stars 1.76k forks source link

ImageButton Aspect is incorrect on Windows #22517

Open mattleibow opened 6 months ago

mattleibow commented 6 months ago

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

github-actions[bot] commented 6 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.